equal
deleted
inserted
replaced
1 DESTDIR = |
1 (binary file application/octet-stream, hash: d9138b7e6c061c84686a2749c0344e9c71207acd) |
2 prefix = /usr/local |
|
3 sbindir = ${prefix}/sbin |
|
4 man8dir = ${prefix}/share/man/man8 |
|
5 initdir = /etc/init.d |
|
6 defaultdir = /etc/default |
|
7 |
|
8 all: tele-watch tele-watch.8.gz init.d |
|
9 install: all |
|
10 install -m 0755 -d ${DESTDIR}${sbindir} |
|
11 install -m 0755 tele-watch ${DESTDIR}${sbindir}/ |
|
12 |
|
13 install -m 0755 -d ${DESTDIR}${man8dir} |
|
14 install -m 0644 tele-watch.8.gz ${DESTDIR}${man8dir} |
|
15 |
|
16 test -f ${DESTDIR}${initdir}/tele-watch \ |
|
17 || install -m 0755 init.d ${DESTDIR}${initdir}/tele-watch |
|
18 test -f ${DESTDIR}${defaultdir}/tele-watch \ |
|
19 || install -m 0644 default ${DESTDIR}${defaultdir}/tele-watch |
|
20 |
|
21 clean: |
|
22 -rm -f tele-watch.8.gz tele-watch |
|
23 |
|
24 %: %.in |
|
25 perl -pe 's{__sbindir__}{${sbindir}}g' <$< >$@ |
|
26 |
|
27 %: %.pl |
|
28 perl -c $< |
|
29 cp -f $< $@ |
|
30 perl -i -pe 's/<VERSION>/`hg id -it`/e' $@ |
|
31 chmod a+x-w $@ |
|
32 |
|
33 %.gz: % |
|
34 gzip -f $< |
|
35 |
|
36 %.8: % |
|
37 pod2man --section 8 $< >$@ |
|
38 |
|