From 88242eecee3d2995b3f51b58cf75a75df4ec2b8b Mon Sep 17 00:00:00 2001 From: Martin Read Date: Sat, 8 Feb 2014 17:48:53 +0000 Subject: [PATCH] Neronic shuffling --- Makefile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 0b29160..1e53205 100644 --- a/Makefile +++ b/Makefile @@ -17,13 +17,11 @@ LIBS=-lpanelw -lncursesw -lxdg-basedir -lm ARCHIVEDIR:=victrix-abyssi-$(MAJVERS).$(MINVERS) ARCHIVENAME:=victrix-abyssi_$(MAJVERS).$(MINVERS) -.cc.o: - $(CXX) $(DEVELOPMENT_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) $< -o $@ +## PHONY targets in this section, please -all: $(GAME) +.PHONY: all archive clean code-docs debianize-archive install spotless -$(GAME): $(OBJS) - $(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -o $(GAME) +all: $(GAME) archive: clean permobj.cc pobj_id.hh mkdir $(ARCHIVEDIR) @@ -41,10 +39,6 @@ clean: code-docs: doxygen Doxyfile -headergen: - ./pobj_comp default.permobjs - #./pmon_comp default.permons - install: all echo "man6dir is $(man6dir)" install -D $(GAME) $(DESTDIR)$(gamesdir)/$(GAME) @@ -53,6 +47,14 @@ install: all spotless: clean -rm -f $(GENERATED_SOURCE) +## Real targets only after this point please + +$(GAME): $(OBJS) + $(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -o $(GAME) + +.cc.o: + $(CXX) $(DEVELOPMENT_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) $< -o $@ + ## Dependencies for autogeneration permobj.cc pobj_id.hh: pobj_comp default.permobjs ./pobj_comp default.permobjs -- 2.11.0