From: Andre Noll Date: Sat, 16 Jul 2016 11:43:52 +0000 (+0200) Subject: build: Don't create phony targets for dependencies. X-Git-Tag: v0.6.0~2^2~11 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=1be3886508d2fe35df06e97336598d11bf2dd965 build: Don't create phony targets for dependencies. The -MP option is supposed to work around make errors after a header file was removed. However, with the option enabled, the attempt to include a non-existing header file causes the build to loop endlessly. --- diff --git a/Makefile.real b/Makefile.real index bc05c75d..cb3bcaa3 100644 --- a/Makefile.real +++ b/Makefile.real @@ -255,7 +255,7 @@ $(object_dir)/%.o: %.c | $(object_dir) # part we prefix the dependency as appropriate. $(dep_dir)/%.d: %.c | $(dep_dir) @[ -z "$(Q)" ] || echo 'DEP $<' - $(Q) $(CC) $(CPPFLAGS) -MM -MG -MP -MT $@ -MT $(object_dir)/$(*F).o $< \ + $(Q) $(CC) $(CPPFLAGS) -MM -MG -MT $@ -MT $(object_dir)/$(*F).o $< \ | sed -e "s@ \([a-zA-Z0-9_]\{1,\}.lsg.h\)@ $(lls_suite_dir)/\1@g" > $@ para_recv para_afh para_play para_server: LDFLAGS += $(id3tag_ldflags)