X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=src%2FMakefile;h=ca85eeca43901fc506b3b412a68438cf6f915249;hp=364fd89361b4ada4e0c49b8d0ef071fecf1f12bc;hb=16adff04371097ad96ea620f1045fd55e5b7a6dc;hpb=e2beb7aa9900c650ec69594a2f26cc2889908134 diff --git a/src/Makefile b/src/Makefile index 364fd89..ca85eec 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,7 +7,14 @@ export DOCDIR=${PREFIX}/share/doc export MAN1DIR=${MANDIR}/man1/ export PERLDIR=${PREFIX}/share/perl5 -all: pvefw-logger +all: pve-firewall.1 pvefw-logger + +%.1: %.1.pod + rm -f $@ + cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation" >$@ + +pve-firewall.1.pod: pve-firewall + perl -I.. ./pve-firewall printmanpod >$@ CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) @@ -19,11 +26,13 @@ pvefw-logger: pvefw-logger.c $(shell pkg-config libnetfilter_log glib-2.0 gthread-2.0 --libs --cflags) .PHONY: install -install: pve-firewall pvefw-logger +install: pve-firewall pve-firewall.1 pvefw-logger make -C PVE install install -d -m 0755 ${DESTDIR}/${SBINDIR} install -m 0755 pve-firewall ${DESTDIR}/${SBINDIR} install -m 0755 --strip pvefw-logger ${DESTDIR}/${SBINDIR} + install -d ${MAN1DIR} + install -m 0644 pve-firewall.1 ${MAN1DIR} .PHONY: clean clean: