More makefile improvements

This commit is contained in:
call-cc 2020-06-02 16:36:37 -04:00
parent e4758c0f9b
commit f458b93c2b
1 changed files with 3 additions and 4 deletions

View File

@ -1,3 +1,5 @@
# This makefile is BSD compatiable: You can run it without gmake on most systems
CC = cc CC = cc
compile: compile:
@ -12,10 +14,7 @@ compile:
$(CC) -o touch touch.o $(CC) -o touch touch.o
$(CC) -o yes yes.o $(CC) -o yes yes.o
objclean: *.o clean:
rm *.o
clean: objclean
rm *.o cat dirname echo ln mkdir pwd rmdir touch yes rm *.o cat dirname echo ln mkdir pwd rmdir touch yes
.PHONY: clean objclean compile .PHONY: clean objclean compile