Improve how to set number of arrows 1994/dodsond2

Using a Makefile variable one can now do

    make clobber ARROWS=5 alt

or whatever they wish to set it to. The code already checked the range.
This commit is contained in:
Cody Boone Ferguson committed 2023-12-07 05:55:45 -08:00
1 parent 031ca74d9e
commit dd98bfe5ce
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -58,7 +58,7 @@ ARCH=
# Defines that are needed to compile
#
CDEFINE= -DW=3
CDEFINE= -DW=${ARROWS}
# Include files that are needed to compile
#
@@ -138,8 +138,11 @@ ${PROG}: ${PROG}.c
alt: data ${ALT_TARGET}
@${TRUE}
# variable to allow overriding how many arrows to start with
ARROWS= 3
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
${CC} ${CFLAGS} -DW=${ARROWS} $< -o $@ ${LDFLAGS}
# data files
#
+1 -1
View File
@@ -46,7 +46,7 @@ The default number of arrows in this version is 3 but if you want to change it,
say to 5, try:
```sh
make clobber CDEFINE="-DW=5" alt
make clobber ARROWS=5 alt
```