Improve how to redefine sleep in 1993/rince

Using a Makefile variable one can now do just

    make clobber SLEEP=18 alt

or whatever number they wish.

Also added jkb.alt and jkb.alt2 rules that correspond to the jkb rule.
This commit is contained in:
Cody Boone Ferguson committed 2023-12-07 05:52:44 -08:00
1 parent 0fcd68f250
commit 031ca74d9e
3 files changed
+22 -4

No files matched your search

+2
View File
@@ -1,4 +1,6 @@
jkb
jkb.alt
jkb.alt2
rince
rince.orig
rince.alt
+19 -1
View File
@@ -58,7 +58,7 @@ ARCH=
# Defines that are needed to compile
#
CDEFINE= -DZ=17
CDEFINE= -DZ=${SLEEP}
# Include files that are needed to compile
#
@@ -143,6 +143,24 @@ jkb: ${PROG}
alt: data ${ALT_TARGET}
@${TRUE}
# variable to control how long to sleep in alt version
SLEEP= 17
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} -DZ=${SLEEP} $< -o $@ ${LDFLAGS}
${PROG}.alt2: ${PROG}.alt2.c
${CC} ${CFLAGS} -DZ=${SLEEP} $< -o $@ ${LDFLAGS}
jkb.alt: ${PROG}.alt
${RM} -f $@
${LN} $< $@
jkb.alt2: ${PROG}.alt
${RM} -f $@
${LN} $< $@
# data files
#
data: ${DATA}
+1 -3
View File
@@ -20,8 +20,6 @@ STATUS: INABIAF - please **DO NOT** fix
For more detailed information see [1993 rince in bugs.md](/bugs.md#1993-rince).
## To use:
```sh
@@ -61,7 +59,7 @@ changed).
```sh
make CDEFINE="-DZ=18" clobber alt
make SLEEP=18 clobber alt
```
Replace 18 with whatever number you wish.