diff Makefile.gen @ 502:e1526854e735

Add install target for Unix Makefile that installs tool binaries only, to /usr/local/bin by default.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 17 Nov 2012 17:04:44 +0200
parents 966617f0f6cd
children 2a70f5902b70
line wrap: on
line diff
--- a/Makefile.gen	Sat Nov 17 17:04:08 2012 +0200
+++ b/Makefile.gen	Sat Nov 17 17:04:44 2012 +0200
@@ -62,7 +62,7 @@
 DM_LDFLAGS += $(ZLIB_LDFLAGS)
 DMLIB_OBJS += dmpack.o dmpackutil.o
 ifeq ($(DM_BUILD_TOOLS),yes)
-BINARIES += packed
+TOOL_BINARIES += packed
 endif
 endif
 
@@ -104,7 +104,7 @@
 DMLIB_OBJS += dmtext_bm.o
 ifeq ($(DM_BUILD_TOOLS),yes)
 ifeq ($(DM_USE_STDIO),yes)
-BINARIES += fontconv
+TOOL_BINARIES += fontconv
 endif
 endif
 endif
@@ -192,14 +192,14 @@
 ifeq ($(DM_BUILD_TOOLS),yes)
 DMLIB_OBJS += libgfx.o lib64gfx.o
 ifeq ($(DM_USE_STDIO),yes)
-BINARIES+= objlink data2inc gfxconv gentab
+TOOL_BINARIES+= objlink data2inc gfxconv gentab
 ifeq ($(SUP_MODLOAD),yes)
-BINARIES+= viewmod mod2wav testpl
+TOOL_BINARIES+= viewmod mod2wav testpl
 ifeq ($(DM_GFX_BLITS),yes)
-BINARIES+= view64
+TOOL_BINARIES+= view64
 ifeq ($(DM_GFX_BM_TEXT),yes)
 ifeq ($(DM_GFX_MISC),yes)
-BINARIES+= ppl
+TOOL_BINARIES+= ppl
 endif
 endif
 endif
@@ -207,7 +207,7 @@
 
 ifeq ($(JSS_SUP_JSSMOD),yes)
 ifeq ($(JSS_SUP_XM),yes)
-BINARIES+= xm2jss
+TOOL_BINARIES+= xm2jss
 endif
 endif
 endif
@@ -242,7 +242,8 @@
 BINARIES += vecmattest fptest
 endif
 
-TARGETS += $(DMLIB_A) $(addprefix $(BINPATH),$(addsuffix $(EXEEXT),$(BINARIES)))
+TOOL_TARGETS = $(addprefix $(BINPATH),$(addsuffix $(EXEEXT),$(TOOL_BINARIES)))
+TARGETS += $(DMLIB_A) $(addprefix $(BINPATH),$(addsuffix $(EXEEXT),$(BINARIES))) $(TOOL_TARGETS)
 
 all: $(TARGETS)