[PATCH] add 'all' target to makefile
me at bearsh.org
me at bearsh.org
Tue Feb 26 12:13:33 PST 2013
From: Martin Gysel <me at bearsh.org>
Signed-off-by: Martin Gysel <me at bearsh.org>
---
Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index f0d1b8e..88f3428 100644
--- a/Makefile
+++ b/Makefile
@@ -163,13 +163,15 @@ OBJS = main.o dive.o time.o profile.o info.o equipment.o divelist.o deco.o plann
DEPS = $(wildcard .dep/*.dep)
+all: gen_version_file $(NAME)
+
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)
+$(NAME): $(OBJS) $(MSGOBJS) $(INFOPLIST)
$(CC) $(LDFLAGS) -o $(NAME) $(OBJS) $(LIBS)
install: $(NAME)
--
1.8.1.4
More information about the subsurface
mailing list