]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
do not ignore errors in man subdirs
authorMike Frysinger <vapier@gentoo.org>
Fri, 11 Jan 2013 06:56:29 +0000 (06:56 +0000)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 15 Jan 2013 17:41:37 +0000 (09:41 -0800)
If an error occurs in a man subdir, make sure we propagate it back up.

While we're here, merge the duplicate rules into one.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
man/Makefile

index 9a60fa7c7d46b1447ad295d3095b6673ff5c1665..749faa11ef4a0d3d783351fa507b6f22272f98c9 100644 (file)
@@ -4,17 +4,11 @@ INSTALLMAN=install -m 0644
 
 SUBDIRS = man3 man7 man8
 
-all:
-       @for subdir in $(SUBDIRS); do $(MAKE) -C $$subdir; done
+all clean install:
+       @for subdir in $(SUBDIRS); do $(MAKE) -C $$subdir $@ || exit $$?; done
 
 distclean: clean
 
-clean:
-       @for subdir in $(SUBDIRS); do $(MAKE) -C $$subdir clean; done
-
-install:
-       @for subdir in $(SUBDIRS); do $(MAKE) -C $$subdir install; done
-
 .PHONY: install clean distclean
 
 .EXPORT_ALL_VARIABLES: