hide the .d files

This commit is contained in:
Bill Currie 2002-08-14 16:15:20 +00:00
parent f39c65e236
commit a88b8e07b5
5 changed files with 10 additions and 3 deletions

View file

@ -2,4 +2,5 @@
*.dat
*.qfo
*.sym
.deps
.vimrc

View file

@ -13,10 +13,11 @@ game_source = \
world.r
game_obj = $(addsuffix .qfo,$(basename $(game_source)))
game_dep = $(addsuffix .d,$(basename $(game_source)))
game_dep = $(addprefix .deps/,$(addsuffix .d,$(basename $(game_source))))
%.qfo: %.r
@$(QFCC) -M $(QCPPFLAGS) -c $< | sed -e 's/\.r\.o\>/.qfo/' > `basename $@ .qfo`.d
@mkdir -p .deps
@$(QFCC) -q -M $(QCPPFLAGS) -c $< | sed -e 's/\.r\.o\>/.qfo/' > .deps/`basename $@ .qfo`.d
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
%.qfo: %.qc
@ -29,5 +30,6 @@ game.dat: $(game_obj) ../lib/libr.pak
clean:
rm -f *.qfo *.dat *.sym *.d
rm -rf .deps
-include $(game_dep)

View file

@ -2,4 +2,5 @@
*.dat
*.qfo
*.sym
.deps
.vimrc

View file

@ -3,4 +3,5 @@
*.pak
*.qfo
*.sym
.deps
.vimrc

View file

@ -7,9 +7,11 @@ libr_source = \
object.r
libr_obj = $(addsuffix .qfo,$(basename $(libr_source)))
libr_dep = $(addsuffix .d,$(basename $(libr_source)))
libr_dep = $(addprefix .deps/,$(addsuffix .d,$(basename $(libr_source))))
%.qfo: %.r
@mkdir -p .deps
@$(QFCC) -M -q $(QCPPFLAGS) -c $< | sed -e 's/\.r\.o\>/.qfo/' > .deps/`basename $@ .qfo`.d
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
%.qfo: %.qc