make a mole hill out of 1991/ant
This commit is contained in:
1 parent
4e00062a3e
commit
33fa379314
3 files changed
+19
-5
No files matched your search
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
ant
|
ant
|
||||||
hill
|
|
||||||
ant.orig
|
ant.orig
|
||||||
|
hill
|
||||||
|
mole
|
||||||
prog.orig
|
prog.orig
|
||||||
+11
-3
@@ -113,8 +113,8 @@ ENTRY= ant
|
|||||||
PROG= ${ENTRY}
|
PROG= ${ENTRY}
|
||||||
#
|
#
|
||||||
OBJ= ${PROG}.o
|
OBJ= ${PROG}.o
|
||||||
DATA=
|
DATA= README.md
|
||||||
TARGET= ${PROG}
|
TARGET= ${PROG} hill mole
|
||||||
#
|
#
|
||||||
ALT_OBJ=
|
ALT_OBJ=
|
||||||
ALT_TARGET=
|
ALT_TARGET=
|
||||||
@@ -132,9 +132,17 @@ all: data ${TARGET}
|
|||||||
clean clobber install love haste waste maker easter_egg \
|
clean clobber install love haste waste maker easter_egg \
|
||||||
sandwich supernova deep_magic magic charon pluto
|
sandwich supernova deep_magic magic charon pluto
|
||||||
|
|
||||||
${PROG}: ${PROG}.c
|
${PROG}: ${PROG}.c hill
|
||||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||||
|
|
||||||
|
hill: README.md
|
||||||
|
${RM} -f $@
|
||||||
|
${CP} -f -v $? $@
|
||||||
|
|
||||||
|
mole: ${PROG}.c hill
|
||||||
|
${RM} -f $@
|
||||||
|
${CAT} ${PROG}.c hill > $@
|
||||||
|
|
||||||
# alternative executable
|
# alternative executable
|
||||||
#
|
#
|
||||||
alt: data ${ALT_TARGET}
|
alt: data ${ALT_TARGET}
|
||||||
|
|||||||
+6
-1
@@ -27,10 +27,15 @@ program exit without doing anything.
|
|||||||
### Try:
|
### Try:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cp README.md hill
|
make hill
|
||||||
./ant hill
|
./ant hill
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make mole
|
||||||
|
./ant mole
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Judges' remarks:
|
## Judges' remarks:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user