root/Makefile.in

Revision 9cb45b7597e8bcabebf529f54ec608209571b285, 1.3 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

fix up make process to use autoconf to find perl and pod2man. refs #10

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