From 031ca74d9e34215fa2e36fd7fb27fc9feec65ab3 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 7 Dec 2023 05:52:44 -0800 Subject: [PATCH] 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. --- 1993/rince/.gitignore | 2 ++ 1993/rince/Makefile | 20 +++++++++++++++++++- 1993/rince/README.md | 4 +--- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/1993/rince/.gitignore b/1993/rince/.gitignore index c935df6bd..9bee489dc 100644 --- a/1993/rince/.gitignore +++ b/1993/rince/.gitignore @@ -1,4 +1,6 @@ jkb +jkb.alt +jkb.alt2 rince rince.orig rince.alt diff --git a/1993/rince/Makefile b/1993/rince/Makefile index badac181e..b0d789b75 100644 --- a/1993/rince/Makefile +++ b/1993/rince/Makefile @@ -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} diff --git a/1993/rince/README.md b/1993/rince/README.md index c2d4cbeb6..63e218c73 100644 --- a/1993/rince/README.md +++ b/1993/rince/README.md @@ -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.