From bb010817ab49b8b80daba4ddc9e3a0ef0cb21491 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Mon, 15 Apr 2013 20:46:22 +0200 Subject: Don't rebuild the manpages on install Only (forcefully) rebuild them when generating a source tarball. This is an addendum to 9b500. --- Makefile | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b2ac7d8..40aa2de 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ export VERSION = 0.8 -.PHONY: install install-docs docs tarball pkgbuild clean +.PHONY: install tarball pkgbuild clean -install: install-docs +install: + # Documentation + $(MAKE) -C docs install # Configuration files install -d $(DESTDIR)/etc/netctl/{examples,hooks,interfaces} install -m644 docs/examples/* $(DESTDIR)/etc/netctl/examples/ @@ -23,17 +25,9 @@ install: install-docs install -d $(DESTDIR)/usr/lib/systemd/system install -m644 services/*.service $(DESTDIR)/usr/lib/systemd/system/ -install-docs: docs - install -d $(DESTDIR)/usr/share/man/{man1,man5,man7} - install -m644 docs/*.1 $(DESTDIR)/usr/share/man/man1/ - install -m644 docs/*.5 $(DESTDIR)/usr/share/man/man5/ - install -m644 docs/*.7 $(DESTDIR)/usr/share/man/man7/ - -docs: - $(MAKE) -B -C $@ - tarball: netctl-$(VERSION).tar.xz -netctl-$(VERSION).tar.xz: | docs +netctl-$(VERSION).tar.xz: + $(MAKE) -B -C docs cp src/netctl{,.orig} sed -i "s/NETCTL_VERSION=.*/NETCTL_VERSION=$(VERSION)/" src/netctl git stash save -q -- cgit v1.2.3-24-g4f1b