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:
1 parent
0fcd68f250
commit
031ca74d9e
3 files changed
+22
-4
No files matched your search
@@ -1,4 +1,6 @@
|
|||||||
jkb
|
jkb
|
||||||
|
jkb.alt
|
||||||
|
jkb.alt2
|
||||||
rince
|
rince
|
||||||
rince.orig
|
rince.orig
|
||||||
rince.alt
|
rince.alt
|
||||||
|
|||||||
+19
-1
@@ -58,7 +58,7 @@ ARCH=
|
|||||||
|
|
||||||
# Defines that are needed to compile
|
# Defines that are needed to compile
|
||||||
#
|
#
|
||||||
CDEFINE= -DZ=17
|
CDEFINE= -DZ=${SLEEP}
|
||||||
|
|
||||||
# Include files that are needed to compile
|
# Include files that are needed to compile
|
||||||
#
|
#
|
||||||
@@ -143,6 +143,24 @@ jkb: ${PROG}
|
|||||||
alt: data ${ALT_TARGET}
|
alt: data ${ALT_TARGET}
|
||||||
@${TRUE}
|
@${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 files
|
||||||
#
|
#
|
||||||
data: ${DATA}
|
data: ${DATA}
|
||||||
|
|||||||
@@ -20,8 +20,6 @@ STATUS: INABIAF - please **DO NOT** fix
|
|||||||
For more detailed information see [1993 rince in bugs.md](/bugs.md#1993-rince).
|
For more detailed information see [1993 rince in bugs.md](/bugs.md#1993-rince).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## To use:
|
## To use:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -61,7 +59,7 @@ changed).
|
|||||||
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make CDEFINE="-DZ=18" clobber alt
|
make SLEEP=18 clobber alt
|
||||||
```
|
```
|
||||||
|
|
||||||
Replace 18 with whatever number you wish.
|
Replace 18 with whatever number you wish.
|
||||||
|
|||||||
Reference in new issue
Block a user