evil hack, but can build from "make dist" again

This commit is contained in:
Bill Currie 2001-09-11 06:34:03 +00:00
parent 410783025e
commit 4bc167c5aa
2 changed files with 16 additions and 6 deletions

View file

@ -160,9 +160,14 @@ CLEANFILES = *.i *.s $(YACCLEX_CLEANFILES)
sys_sdl.o: sys_sdl.c
@echo '$(COMPILE) $(SDL_CFLAGS) -c $<'; \
$(COMPILE) $(SDL_CFLAGS) -Wp,-MD,.deps/$(*F).pp -c $<
@-cp .deps/$(*F).pp .deps/$(*F).P; \
if test -d .deps; then \
$(COMPILE) $(SDL_CFLAGS) -Wp,-MD,.deps/$(*F).pp -c $<; \
else \
$(COMPILE) $(SDL_CFLAGS) -c $<; \
fi
@-if test -d .deps; then cp .deps/$(*F).pp .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm .deps/$(*F).pp
rm .deps/$(*F).pp; \
fi

View file

@ -175,9 +175,14 @@ CLEANFILES = *.i *.s $(YACCLEX_CLEANFILES)
cl_sys_sdl.o: cl_sys_sdl.c
@echo '$(COMPILE) $(SDL_CFLAGS) -c $<'; \
$(COMPILE) $(SDL_CFLAGS) -Wp,-MD,.deps/$(*F).pp -c $<
@-cp .deps/$(*F).pp .deps/$(*F).P; \
if test -d .deps; then \
$(COMPILE) $(SDL_CFLAGS) -Wp,-MD,.deps/$(*F).pp -c $<; \
else \
$(COMPILE) $(SDL_CFLAGS) -c $<; \
fi
@-if test -d .deps; then cp .deps/$(*F).pp .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm .deps/$(*F).pp
rm .deps/$(*F).pp; \
fi