diff Makefile @ 26:288e688aaac3

Build system improvements.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 19 Aug 2017 15:46:11 +0300
parents 9830a8be6eba
children 8a604636b077
line wrap: on
line diff
--- a/Makefile	Thu May 19 13:21:09 2016 +0300
+++ b/Makefile	Sat Aug 19 15:46:11 2017 +0300
@@ -1,12 +1,7 @@
 #
 # Generic build target
 #
-BPATH := $(shell pwd)
-DMLIB := $(BPATH)/dmlib/
-PACKAGE = $(BPATH)/ap-bussi.zip
-BINPATH = $(BPATH)/bin/
-DATA = $(BINPATH)/bussi.dat
-MAKE ?= make
+include config.mak
 
 export DMLIB
 export BINPATH
@@ -29,10 +24,10 @@
 $(DATA):
 	cd $(BPATH)/data && $(DMLIB)/tools/packed -p $@ -c -x \*~ -v *
 
-package: linux-bin mingw-win32 $(BINPATH)/bussi.dat
+package: linux-bin mingw-win32 $(DATA)
 	strip $(BINPATH)/*.bin $(BINPATH)/*.exe
 	$(RM) $(PACKAGE)
-	@cp README.txt file_id.diz $(BINPATH)
+	@cp LICENSE.txt README.txt file_id.diz $(BINPATH)
 	cd $(BINPATH) && zip -x "*~" -9 $(PACKAGE) *