make echo makefile nicer
This commit is contained in:
parent
7d08978808
commit
18e795f5cc
@ -1,11 +1,5 @@
|
|||||||
TARGETS = echo prompt
|
all: echo prompt
|
||||||
|
|
||||||
all: $(TARGETS)
|
echo: echo.c
|
||||||
|
|
||||||
%: %.c
|
prompt: prompt.c
|
||||||
$(CC) -o $@ $@.c
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(TARGETS)
|
|
||||||
|
|
||||||
.PHONY: all clean
|
|
||||||
|
Loading…
Reference in New Issue
Block a user