30_all_Makefile.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Ensure that the build process aborts if there is an error in one of
  2. the plugin subdirectories.
  3. 2010-09-01 Martin von Gagern
  4. References:
  5. http://bugs.gentoo.org/334727
  6. Index: ppp-2.4.5/pppd/plugins/Makefile.linux
  7. ===================================================================
  8. --- ppp-2.4.5.orig/pppd/plugins/Makefile.linux
  9. +++ ppp-2.4.5/pppd/plugins/Makefile.linux
  10. @@ -20,7 +20,7 @@ include .depend
  11. endif
  12. all: $(PLUGINS)
  13. - for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d all; done
  14. + for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d all || exit $?; done
  15. %.so: %.c
  16. $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^
  17. @@ -30,12 +30,12 @@ VERSION = $(shell awk -F '"' '/VERSION/
  18. install: $(PLUGINS)
  19. $(INSTALL) -d $(LIBDIR)
  20. $(INSTALL) $? $(LIBDIR)
  21. - for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d install; done
  22. + for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d install || exit $?; done
  23. clean:
  24. rm -f *.o *.so *.a
  25. - for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean; done
  26. + for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean || exit $?; done
  27. depend:
  28. $(CPP) -M $(CFLAGS) *.c >.depend
  29. - for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend; done
  30. + for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend || exit $?; done