root/Makefile.in

Revision a15a7973816ea6c752b14b8582f6d1047159f95b, 1.1 kB (checked in by Eric Sproul <esproul@omniti.com>, 7 years ago)

Use a .in for the Makefile as well. Better README

  • Property mode set to 100644
Line 
1 prefix = /usr/local
2 bindir = ${prefix}/bin
3 sysconfdir = ${prefix}/etc
4 mandir = ${prefix}/man
5
6 mkinstalldirs = /bin/sh ./mkinstalldirs
7 install = ./install-sh -c
8
9 # Set these to appropriate values for your system
10 perl = /usr/bin/perl
11 pod2man = pod2man
12
13 all:
14         sed -e "s#/usr/bin/perl#$(perl)#;" -e "s#__PREFIX__#$(prefix)#;" \
15         < zetaback.in > zetaback
16         sed -e "s#/usr/bin/perl#$(perl)#;" -e "s#__PREFIX__#$(prefix)#;" \
17         < zetaback_agent.in > zetaback_agent
18
19 install: all
20         $(mkinstalldirs) ${bindir}
21         $(mkinstalldirs) ${sysconfdir}
22         $(mkinstalldirs) ${mandir}
23         $(mkinstalldirs) ${mandir}/man1
24         $(pod2man) zetaback zetaback.1
25         $(pod2man) zetaback_agent zetaback_agent.1
26         $(install) -m 0755 zetaback ${bindir}/zetaback
27         $(install) -m 0755 zetaback_agent ${bindir}/zetaback_agent
28         $(install) -m 0644 zetaback.conf ${sysconfdir}/zetaback.conf
29         $(install) -m 0644 zetaback_agent.conf ${sysconfdir}/zetaback_agent.conf
30         $(install) -m 0644 zetaback.1 ${mandir}/man1/zetaback.1
31         $(install) -m 0644 zetaback_agent.1 ${mandir}/man1/zetaback_agent.1
32
33 clean:
34         rm -f zetaback zetaback_agent zetaback.1 zetaback_agent.1
35
36 distclean: clean
37         rm -f Makefile
Note: See TracBrowser for help on using the browser.