forked from omniti-labs/zetaback
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
49 lines (43 loc) · 1.39 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
prefix=@prefix@
vardir=/var
exec_prefix=@exec_prefix@
bindir=@bindir@
sbindir=@sbindir@
libdir=@libdir@
includedir=${prefix}/include
libexecdir=@libexecdir@
mandir=@mandir@
sysconfdir=@sysconfdir@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
datarootdir=@datarootdir@
DESTDIR=
mkinstalldirs=./mkinstalldirs
install=./install-sh -c
zfs=@ZFS@
perl=@PERL@
pod2man=@POD2MAN@
all:
sed -e "s#/usr/bin/perl#$(perl)#;" -e "s#__PREFIX__#$(prefix)#;" \
-e "s#__ZFS__#$(zfs)#;" \
< zetaback.in > zetaback
sed -e "s#/usr/bin/perl#$(perl)#;" -e "s#__PREFIX__#$(prefix)#;" \
-e "s#__ZFS__#$(zfs)#;" \
< zetaback_agent.in > zetaback_agent
install: all
$(mkinstalldirs) ${DESTDIR}${bindir}
$(mkinstalldirs) ${DESTDIR}${sysconfdir}
$(mkinstalldirs) ${DESTDIR}${mandir}
$(mkinstalldirs) ${DESTDIR}${mandir}/man1
$(pod2man) zetaback zetaback.1
$(pod2man) zetaback_agent zetaback_agent.1
$(install) -m 0755 zetaback ${DESTDIR}${bindir}/zetaback
$(install) -m 0755 zetaback_agent ${DESTDIR}${bindir}/zetaback_agent
$(install) -m 0644 zetaback.conf ${DESTDIR}${sysconfdir}/zetaback.conf.sample
$(install) -m 0644 zetaback_agent.conf ${DESTDIR}${sysconfdir}/zetaback_agent.conf.sample
$(install) -m 0644 zetaback.1 ${DESTDIR}${mandir}/man1/zetaback.1
$(install) -m 0644 zetaback_agent.1 ${DESTDIR}${mandir}/man1/zetaback_agent.1
clean:
rm -f zetaback zetaback_agent zetaback.1 zetaback_agent.1
distclean: clean
rm -f Makefile