make maintainable in a week
This commit is contained in:
parent
adbaf11d71
commit
24cb04160a
@ -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 $@
|
||||
|
@ -4,3 +4,10 @@
|
||||
/__/ /_//_//_//_/ /__/ /__/ 2025 DTB. Public Domain.
|
||||
|
||||
build: $ make
|
||||
|
||||
libio.c, libio.h: libio, a wrapper around I/O functions for status(1)
|
||||
libkeyval.c, libkeyval.h: libkeyval, a key/value system for status(1)
|
||||
*.def.c: the default for foo.c, a configuration file #included
|
||||
directly in a source-file
|
||||
mod_*.c: modules to be #included directly in status.h
|
||||
status.c: main() and boilerplate
|
||||
|
Loading…
Reference in New Issue
Block a user