Improve how Makefiles are formed, updated related doc

This commit is contained in:
Landon Curt Noll
2021-12-13 16:54:45 -08:00
parent 22e123140c
commit f7dadbf1f8
6 changed files with 20 additions and 38 deletions

View File

@@ -4,7 +4,7 @@
#
# Copyright (C) 1999-2018,2021 Landon Curt Noll
#
# SRC: non-GNU Makefile via
# SRC: Makefile.simple - non-GNU version
#
# The "# SRC: ... - ..." comment line above indicates
# the origin of this file.
@@ -3911,7 +3911,7 @@ Makefile.simple: Makefile custom/Makefile.simple
${Q} ${AWK} '/^#if 0/{skp=1} {if(!skp){print $$0}} /^#endif/{skp=0}' \
Makefile | \
${SED} -e 's/cd custom; $${MAKE} -f Makefile/&.simple/' \
-e 's;^# SRC:.*;# SRC: non-GNU Makefile via;' \
-e 's;^# SRC:.*;# SRC: $@ - non-GNU version;' \
-e '/^ifeq /d' \
-e '/^ifneq /d' \
-e '/^ifdef /d' \