make echo makefile nicer
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user