]> git.ipfire.org Git - people/ms/network.git/blobdiff - Makefile
Switch over to man page documentation.
[people/ms/network.git] / Makefile
index c8973acf592c1a09909032f5160751343c06fbc7..0fb47447d5b802546c98ccce22e1b6df7c9a7e33 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,5 @@
 
-NAME = network
-VER  = 003
+include Makeconfig
 
 DESTDIR=
 
@@ -16,9 +15,11 @@ tmpfilesdir=$(prefix)/lib/tmpfiles.d
 # File to store the version number in.
 VERSION_FILE = $(DESTDIR)$(libdir)/network/version
 
+.PHONY: all
 all:
-       @echo "Nothing to do here."
+       make -C man all
 
+.PHONY: install
 install:
        -mkdir -pv $(DESTDIR)$(sysconfdir)/{network/{ports,zones},ppp}
        -mkdir -pv $(DESTDIR)$(libdir)/{network,sysctl.d,udev}
@@ -59,8 +60,11 @@ install:
        # Create the version file.
        : > $(VERSION_FILE)
        echo "# This file is automatically generated." >> $(VERSION_FILE)
-       echo "NETWORK_VERSION=$(VER)" >> $(VERSION_FILE)
+       echo "NETWORK_VERSION=$(PACKAGE_VERSION)" >> $(VERSION_FILE)
+
+       # Descend into subdirectories.
+       make -C man install
 
 dist:
-       git archive --format tar --prefix $(NAME)-$(VER)/ HEAD | gzip -9 > \
-               $(NAME)-$(VER).tar.gz
+       git archive --format tar --prefix $(PACKAGE_NAME)-$(PACKAGE_VERSION)/ HEAD | gzip -9 > \
+               $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz