It's not necessary, because the compflag.h header will never exist, because the makefile has it marked as an .INTERMEDIATE, which means it's deleted automatically if the build is cancelled or finishes.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
W3CTFURGDMRMT2EIH2CVUP3FM6Z3DBN5S5Q7N3DNREYUJKH6KIKAC
compile-flags:
@echo "// Automatically generated by makefile" > .compflag.h
@echo "#ifndef __included_crawl_compiler_flags_h" >> .compflag.h
@echo "#define __included_crawl_compiler_flags_h" >> .compflag.h
@echo -n "#define CRAWL_CFLAGS \"" >> .compflag.h
@echo -n $(CFLAGS) | sed s/\"/\\\"/g >> .compflag.h
@echo "\"" >> .compflag.h
@echo -n "#define CRAWL_CFLAGS_L \"" >> .compflag.h
@echo -n $(CFLAGS_L) | sed s/\"/\\\"/g >> .compflag.h
@echo "\"" >> .compflag.h
@echo -n "#define CRAWL_LDFLAGS \"" >> .compflag.h
@echo -n $(LDFLAGS) | sed s/\"/\\\"/g >> .compflag.h
@echo "\"" >> .compflag.h
@echo "#endif" >> .compflag.h
@if [ "`diff -N -q .compflag.h compflag.h`" ]; then \
echo Updating compflag.h; \
mv .compflag.h compflag.h; \
fi
compflag.h: compile-flags
compflag.h:
$(QUIET_GEN)
@echo "// Automatically generated by makefile" > compflag.h
@echo "#ifndef __included_crawl_compiler_flags_h" >> compflag.h
@echo "#define __included_crawl_compiler_flags_h" >> compflag.h
@echo -n "#define CRAWL_CFLAGS \"" >> compflag.h
@echo -n $(CFLAGS) | sed s/\"/\\\"/g >> compflag.h
@echo "\"" >> compflag.h
@echo -n "#define CRAWL_CFLAGS_L \"" >> compflag.h
@echo -n $(CFLAGS_L) | sed s/\"/\\\"/g >> compflag.h
@echo "\"" >> compflag.h
@echo -n "#define CRAWL_LDFLAGS \"" >> compflag.h
@echo -n $(LDFLAGS) | sed s/\"/\\\"/g >> compflag.h
@echo "\"" >> compflag.h
@echo "#endif" >> compflag.h