X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=src%2FMakefile;h=ca85eeca43901fc506b3b412a68438cf6f915249;hp=c3e5aeffe0b05a88d547955a1968c602cda8cc64;hb=70cc0cba90732074723cde8f96b974f18e8fcfda;hpb=8f1192842a00af8626df1dfbb6a76c1f4944ac9b diff --git a/src/Makefile b/src/Makefile index c3e5aef..ca85eec 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,23 +7,32 @@ 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) LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) pvefw-logger: pvefw-logger.c - gcc -Wall -Werror pvefw-logger.c -o pvefw-logger -std=gnu11 \ + gcc -Wall -Werror pvefw-logger.c -o pvefw-logger -std=gnu99 \ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \ $(shell pkg-config libnetfilter_log glib-2.0 gthread-2.0 --libs --cflags) .PHONY: install -install: pvefw pvefw-logger +install: pve-firewall pve-firewall.1 pvefw-logger make -C PVE install install -d -m 0755 ${DESTDIR}/${SBINDIR} - install -m 0755 pvefw ${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: