1
0
This commit is contained in:
dtb
2022-12-01 01:21:47 -05:00
parent f85bb632e2
commit d8fa412f3b
3 changed files with 27 additions and 28 deletions

View File

@@ -2,19 +2,10 @@ TARGETS = echo prompt
all: $(TARGETS)
echo: echo.c
%: %.c
$(CC) -o $@ $@.c
prompt: echo.c
$(CC) -DPROMPT -o $@ echo.c
clean:
rm -f $(TARGETS)
sane: echo.c ../sysexits/sysexits.h
$(CC) -DDONT_USE_SYSTEM_SYSEXITS -o echo echo.c
../sysexits/sysexits.h:
$(MAKE) -C ../sysexits sysexits.h
.PHONY: all clean sane
.PHONY: all clean