build: Don't create phony targets for dependencies.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 16 Jul 2016 11:43:52 +0000 (13:43 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Mar 2017 09:02:28 +0000 (11:02 +0200)
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.

Makefile.real

index bc05c75d1472645f26792715b842f1ad95bbcab2..cb3bcaa3f16463e0b0f4a9167d225f669483683f 100644 (file)
@@ -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)