root/Makefile.in

Revision 7cea9ab1a636f9c76cf5f6af6502e308b246c646, 1.4 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

fixes #21

  • 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 zfs=@ZFS@
19 perl=@PERL@
20 pod2man=@POD2MAN@
21
22 all:
23         sed -e "s#/usr/bin/perl#$(perl)#;" -e "s#__PREFIX__#$(prefix)#;" \
24                 -e "s#__ZFS__#$(zfs)#;" \
25         < zetaback.in > zetaback
26         sed -e "s#/usr/bin/perl#$(perl)#;" -e "s#__PREFIX__#$(prefix)#;" \
27                 -e "s#__ZFS__#$(zfs)#;" \
28         < zetaback_agent.in > zetaback_agent
29
30 install: all
31         $(mkinstalldirs) ${DESTDIR}${bindir}
32         $(mkinstalldirs) ${DESTDIR}${sysconfdir}
33         $(mkinstalldirs) ${DESTDIR}${mandir}
34         $(mkinstalldirs) ${DESTDIR}${mandir}/man1
35         $(pod2man) zetaback zetaback.1
36         $(pod2man) zetaback_agent zetaback_agent.1
37         $(install) -m 0755 zetaback ${DESTDIR}${bindir}/zetaback
38         $(install) -m 0755 zetaback_agent ${DESTDIR}${bindir}/zetaback_agent
39         $(install) -m 0644 zetaback.conf ${DESTDIR}${sysconfdir}/zetaback.conf.sample
40         $(install) -m 0644 zetaback_agent.conf ${DESTDIR}${sysconfdir}/zetaback_agent.conf.sample
41         $(install) -m 0644 zetaback.1 ${DESTDIR}${mandir}/man1/zetaback.1
42         $(install) -m 0644 zetaback_agent.1 ${DESTDIR}${mandir}/man1/zetaback_agent.1
43
44 clean:
45         rm -f zetaback zetaback_agent zetaback.1 zetaback_agent.1
46
47 distclean: clean
48         rm -f Makefile
Note: See TracBrowser for help on using the browser.