mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
881baafc26
commit
1fd2091759
1 changed files with 3 additions and 3 deletions
6
Makefile
6
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)
|
||||
|
|
Loading…
Reference in a new issue