diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-09-26 23:55:29 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-10-05 13:42:45 -0700 |
commit | caae1e38d0d239f4f7088a64526fe1d2f6587999 (patch) | |
tree | 42ba875885f7593c070da93f828b7ae38ea2dc7c /real.make | |
parent | 06c411ef291e1f608487989b0da63aefbbdfefc1 (diff) | |
download | tmwa-caae1e38d0d239f4f7088a64526fe1d2f6587999.tar.gz tmwa-caae1e38d0d239f4f7088a64526fe1d2f6587999.tar.bz2 tmwa-caae1e38d0d239f4f7088a64526fe1d2f6587999.tar.xz tmwa-caae1e38d0d239f4f7088a64526fe1d2f6587999.zip |
Split string header into pieces
Diffstat (limited to 'real.make')
-rw-r--r-- | real.make | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -67,7 +67,7 @@ # 10. Support per-target build flags? (requires renaming) ifeq ($(findstring s,$(firstword ${MAKEFLAGS})),) -ifeq (${MAKE_RESTARTS},) +ifndef MAKE_RESTARTS # TODO: should I write this in tengwar? # The major problem is that it's usually encoded in the PUA # and thus requires a font specification. @@ -237,6 +237,8 @@ distclean: clean %.cpp %.hpp: %.ypp $(MKDIR_FIRST) ${BISON} -d -o $*.cpp $< +ifndef MAKE_RESTARTS +# prevent errors if missing header obj/%.d: src/%.cpp $(MKDIR_FIRST) set -o pipefail; \ @@ -245,6 +247,7 @@ obj/%.d: src/%.cpp | sed -e ':again; s:/[^/ ]*/../:/:; t again' \ -e 's: ${SRC_DIR}/: :g' \ > $@ +endif # the above SRC_DIR replacement is not really safe, but it works okayish. obj/%.ii: src/%.cpp $(MKDIR_FIRST) @@ -308,8 +311,8 @@ tags: ${SOURCES} ${HEADERS} ctags --totals --c-kinds=+px -f $@ $^ Makefile: ${SRC_DIR}/Makefile.in - @echo Makefile.in updated, you must rerun configure - @false + @echo Makefile.in updated, reconfiguring ... + ./config.status include ${SRC_DIR}/version.make |