ref: 5467ce7b3f8465a714dd639b615c7eecef547b0e
parent: 5ae062a759593ef3459e009f4917e99e4b11b44e
author: Gregory Maxwell <[email protected]>
date: Wed Aug 29 06:31:16 EDT 2012
Avoid using make -C, a gnuism, in Makefile.am. Instead use cd inside the makefiles. This fixes 'make check', etc. with some non-gnu makes. (HPUX, for example)
--- a/Makefile.am
+++ b/Makefile.am
@@ -122,24 +122,24 @@
# Or just the docs
docs:
- $(MAKE) $(AM_MAKEFLAGS) -C doc
+ cd doc && $(MAKE) $(AM_MAKEFLAGS)
install-docs:
- $(MAKE) $(AM_MAKEFLAGS) -C doc install
+ cd doc && $(MAKE) $(AM_MAKEFLAGS) install
# Or everything (by default)
all-local:
- @[ -n "$(NO_DOXYGEN)" ] || $(MAKE) $(AM_MAKEFLAGS) -C doc
+ @[ -n "$(NO_DOXYGEN)" ] || cd doc && $(MAKE) $(AM_MAKEFLAGS)
install-data-local:
- @[ -n "$(NO_DOXYGEN)" ] || $(MAKE) $(AM_MAKEFLAGS) -C doc install
+ @[ -n "$(NO_DOXYGEN)" ] || cd doc && $(MAKE) $(AM_MAKEFLAGS) install
clean-local:
- -$(MAKE) $(AM_MAKEFLAGS) -C doc clean
+ -cd doc && $(MAKE) $(AM_MAKEFLAGS) clean
uninstall-local:
- $(MAKE) $(AM_MAKEFLAGS) -C doc uninstall
+ cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall
.PHONY: opus check-opus install-opus docs install-docs