assemble debian package
[pve-firewall.git] / src / Makefile
1
2 PREFIX=/usr
3 BINDIR=${PREFIX}/bin
4 SBINDIR=${PREFIX}/bin
5 MANDIR=${PREFIX}/share/man
6 DOCDIR=${PREFIX}/share/doc
7 MAN1DIR=${MANDIR}/man1/
8 PERLDIR=${PREFIX}/share/perl5
9
10 LIB_SOURCES=                    \
11         Firewall.pm
12
13 all:
14
15 .PHONY: install
16 install:
17         install -d -m 0755 ${DESTDIR}/${SBINDIR}
18         install -m 0755 pvefw ${DESTDIR}/${SBINDIR}
19         install -d -m 0755 ${DESTDIR}${PERLDIR}/PVE
20         for i in ${LIB_SOURCES}; do install -D -m 0644 PVE/$$i ${DESTDIR}${PERLDIR}/PVE/$$i; done
21
22
23 .PHONY: clean
24 clean:  
25         rm -rf *~
26
27 .PHONY: distclean
28 distclean: clean
29