2 ms·
Nowadays I write a GNUmakefile, then add a Makefile with a message telling people to use gmake. Same idea.
by CJefferson 9y ago
Nowadays I write a GNUmakefile, then add a Makefile with a message telling people to use gmake. Same idea.
- contras1970 9y agoi have this in a (hand-written) configure script: case "$(uname -s)" in Darvin|Linux) MAKE=make GMAKE=$MAKE ;; DragonFly|*BSD) MAKE=make GMAKE=gmake ;; *) MAKE=gmake GMAKE=$MAKE ;; esac ... if test "$MAKE" != "$GMAKE"; then case "$(uname -s)" in DragonFly|*BSD) populate $rootdir/Makefile.in Makefile ;; esac fi cat <<EOF to build the programs from their sources: $MAKE to test their correctness: $MAKE check EOF $rootdir/Makefile.in contains all .DEFAULT: @@GMAKE@ --no-print-directory "$@"