grafX2/install/Makefile
Thomas Bernard 1147a8f49f build Win32 installer with gitlab-ci
call "make ziprelease" if needed
2018-05-13 23:33:42 +02:00

19 lines
524 B
Makefile

VERSIONTAG = ../obj/win32/versiontag
VERSION := $(shell cat $(VERSIONTAG))
SOURCES = ../src-$(VERSION).tgz
INSTALLER = ../grafx2-$(VERSION).win32.exe
all: $(INSTALLER)
$(INSTALLER): WinInstaller.nsi $(SOURCES) $(VERSIONTAG)
sed 's/src-.*.tgz/src-$(VERSION).tgz/' $< | \
sed 's/VERSION .*/VERSION $(VERSION)/' > new_$<
makensis new_$<
$(SOURCES): ../grafx2-$(VERSION)-win32.zip
cd .. && unzip grafx2-$(VERSION)-win32.zip src-$(VERSION).tgz
../grafx2-$(VERSION)-win32.zip:
cd ../src && WIN32CROSS=1 make ziprelease