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
|
||||
$(CC) -o $@ $@.c
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS)
|
||||
|
||||
.PHONY: all clean
|
||||
prompt: prompt.c
|
||||
|
Loading…
Reference in New Issue
Block a user