# HG changeset patch # User Matti Hamalainen # Date 1503319341 -10800 # Node ID 18d1d8d26a18fbbfa9177656d2c2349a9bee77b9 # Parent ce5a1b3651e172ba1957fead0bd0e822f25fff41 Improve build system. diff -r ce5a1b3651e1 -r 18d1d8d26a18 Makefile --- a/Makefile Mon Aug 21 15:42:06 2017 +0300 +++ b/Makefile Mon Aug 21 15:42:21 2017 +0300 @@ -21,18 +21,19 @@ MINGW_PREFIX=x86_64-w64-mingw32- \ MINGW_PATH=/usr/x86_64-w64-mingw32 -$(DATA): +$(DATA): $(wildcard $(BPATH)/data/*) cd $(BPATH)/data && $(DMLIB)/tools/packed -p $@ -c -x \*~ -v * tools: - cd $(DMLIB) && cp config.mak.in config.mak && make -j4 + @if test ! -e $(DMLIB)config.mak; then cp $(DMLIB)config.mak.in $(DMLIB)config.mak; fi + @cd $(DMLIB) && make -j4 data: tools $(DATA) package: linux-bin mingw-win32 $(DATA) strip $(BINPATH)/*.bin $(BINPATH)/*.exe $(RM) $(PACKAGE) - @cp SDL.dll LICENSE.txt README.txt file_id.diz $(BINPATH) + cp SDL.dll LICENSE.txt README.txt file_id.diz $(BINPATH) cd $(BINPATH) && zip -x "*~" -9 $(PACKAGE) *