From a88b8e07b50d780176fa9f625d9487345715dd35 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 14 Aug 2002 16:15:20 +0000 Subject: [PATCH] hide the .d files --- ruamoko/game/.gitignore | 1 + ruamoko/game/Makefile | 6 ++++-- ruamoko/include/.gitignore | 1 + ruamoko/lib/.gitignore | 1 + ruamoko/lib/Makefile | 4 +++- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ruamoko/game/.gitignore b/ruamoko/game/.gitignore index b5629a33f..c13758fa7 100644 --- a/ruamoko/game/.gitignore +++ b/ruamoko/game/.gitignore @@ -2,4 +2,5 @@ *.dat *.qfo *.sym +.deps .vimrc diff --git a/ruamoko/game/Makefile b/ruamoko/game/Makefile index c14302e8a..23b946472 100644 --- a/ruamoko/game/Makefile +++ b/ruamoko/game/Makefile @@ -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) diff --git a/ruamoko/include/.gitignore b/ruamoko/include/.gitignore index b5629a33f..c13758fa7 100644 --- a/ruamoko/include/.gitignore +++ b/ruamoko/include/.gitignore @@ -2,4 +2,5 @@ *.dat *.qfo *.sym +.deps .vimrc diff --git a/ruamoko/lib/.gitignore b/ruamoko/lib/.gitignore index 492ff7c58..af531ab36 100644 --- a/ruamoko/lib/.gitignore +++ b/ruamoko/lib/.gitignore @@ -3,4 +3,5 @@ *.pak *.qfo *.sym +.deps .vimrc diff --git a/ruamoko/lib/Makefile b/ruamoko/lib/Makefile index 0dcbf2551..8beec4729 100644 --- a/ruamoko/lib/Makefile +++ b/ruamoko/lib/Makefile @@ -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