make maintainable in a week
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
CFLAGS += -g
|
||||
|
||||
.PHONY: run
|
||||
run: status
|
||||
./status
|
||||
|
||||
.PHONY: cleanall
|
||||
cleanall: clean
|
||||
rm -f order.c settings.c
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f status *.o
|
||||
|
||||
status: status.c order.c libio.o libkeyval.o
|
||||
$(CC) $(CFLAGS) -o $@ $@.c libio.o libkeyval.o
|
||||
time $(CC) $(CFLAGS) -o $@ $@.c libio.o libkeyval.o
|
||||
|
||||
order.c: order.def.c
|
||||
- cp -v order.def.c $@
|
||||
|
||||
Reference in New Issue
Block a user