fix alt rules in Makefiles

For Makefiles that have alt related rules, moved
the related rules under the alt rule section.

In some cases where there is no alt code,
removed alt rules and/or targets.
This commit is contained in:
Landon Curt Noll committed 2023-03-26 21:48:48 -07:00
1 parent 91fa6e994f
commit 1ce40b273d
28 files changed
+102 -79

No files matched your search

+4
View File
@@ -143,6 +143,10 @@ ${PROG}: ${PROG}.c
@echo " when compiling and running this program with some systems."
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable
#
alt: data ${ALT_TARGET}
@${TRUE}
# data files
#
+8 -3
View File
@@ -133,15 +133,20 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
.PHONY: data everything clean clobber nuke dist_clean \
install build love haste waste make easter_egg \
.PHONY: all alt data everything clean clobber install \
love haste waste maker easter_egg sandwich \
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
-${RM} -f a.out
${CC} ${CFLAGS} $< -o $@ ${LIBS}
-${RM} -f a.out
-${LN} $@ a.out
# alternative executable
#
alt: data ${ALT_TARGET}
@${TRUE}
# data files
#
data: ${DATA}