diff Makefile.gen @ 887:65a5251898a0

Fix build system for empty DEMO_BIN target.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Feb 2015 23:25:21 +0200
parents 951297a7938a
children fface5a23b2a
line wrap: on
line diff
--- a/Makefile.gen	Wed Feb 04 23:22:13 2015 +0200
+++ b/Makefile.gen	Wed Feb 04 23:25:21 2015 +0200
@@ -505,9 +505,11 @@
 ###
 ### Demo binary
 ###
+ifneq ($(DEMO_BIN),)
 $(BINPATH)$(DEMO_BIN)$(EXEEXT): $(addprefix $(OBJPATH),$(DEMO_OBJS)) $(DMLIB_A)
 	@echo " LINK $+"
 	@$(CC) -o $@ $(filter %.o %.a,$+) $(DM_LDFLAGS) $(SDL_LDFLAGS) -lm
+endif
 
 
 ###