Make make work by using PHONY.
This commit is contained in:
parent
f0528b0ded
commit
d5cb72b589
1 changed files with 5 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -7,7 +7,7 @@ SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO advent.text control
|
|||
.c.o:
|
||||
gcc -O $(DBX) -c $<
|
||||
|
||||
advent: $(OBJS) database
|
||||
advent: $(OBJS)
|
||||
gcc -Wall -std=c99 -O $(DBX) -o advent $(OBJS) $(LIBS)
|
||||
|
||||
main.o: main.h misc.h funcs.h database/database.h
|
||||
|
@ -22,6 +22,8 @@ score.o: misc.h main.h share.h database/database.h
|
|||
|
||||
misc.o: misc.h main.h database/database.h
|
||||
|
||||
database/database.o database/database.h: database
|
||||
|
||||
clean:
|
||||
rm -f *.o advent advent.html advent.6 adventure.data
|
||||
cd tests; $(MAKE) --quiet clean
|
||||
|
@ -48,5 +50,6 @@ release: advent-$(VERS).tar.gz advent.html
|
|||
refresh: advent.html
|
||||
shipper -N -w version=$(VERS) | sh -e -x
|
||||
|
||||
.PHONY: database
|
||||
database:
|
||||
cd database; $(MAKE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue