summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-26 12:19:01 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-26 12:19:01 -0800
commit1fd2091759505b314cc62239edeffac343261a24 (patch)
treed560a2f26f5f733d78a65dc17d6b4b611fde5440 /Makefile
parent881baafc26b651028dd49091ca9eb8b920f7d5d8 (diff)
downloadsubsurface-1fd2091759505b314cc62239edeffac343261a24.tar.gz
Get make to rebuild Subsurface by default again
To quote Linus: Move the rule for the new version thing down. Plain "make" will try to make the first target in the Makefile. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f0d1b8e43..f3fb4e5b5 100644
--- a/Makefile
+++ b/Makefile
@@ -163,15 +163,15 @@ OBJS = main.o dive.o time.o profile.o info.o equipment.o divelist.o deco.o plann
DEPS = $(wildcard .dep/*.dep)
+$(NAME): gen_version_file $(OBJS) $(MSGOBJS) $(INFOPLIST)
+ $(CC) $(LDFLAGS) -o $(NAME) $(OBJS) $(LIBS)
+
gen_version_file:
ifneq ($(STORED_VERSION_STRING),$(VERSION_STRING))
$(info updating $(VERSION_FILE) to $(VERSION_STRING))
@echo \#define VERSION_STRING \"$(VERSION_STRING)\" >$(VERSION_FILE)
endif
-$(NAME): gen_version_file $(OBJS) $(MSGOBJS) $(INFOPLIST)
- $(CC) $(LDFLAGS) -o $(NAME) $(OBJS) $(LIBS)
-
install: $(NAME)
$(INSTALL) -d -m 755 $(BINDIR)
$(INSTALL) $(NAME) $(BINDIR)