c9c2d099ba
Port the current installer infrastructure from the gtk-sharp-2-12 branch, adapting it as needed. Credits go to Duncan Mak for maintaining the 2.12 installer in the past few years. When building on Windows, if the WiX toolset is available, the msi is generated automatically at the end of the build.
33 lines
784 B
Makefile
33 lines
784 B
Makefile
if ENABLE_MSI
|
|
TARGET=unmanaged.msm
|
|
else
|
|
TARGET=
|
|
endif
|
|
|
|
noinst_DATA = $(TARGET)
|
|
|
|
DOWNLOADS = downloads.win32
|
|
|
|
download-stamp: $(DOWNLOADS)
|
|
rm -rf source
|
|
mkdir -p source
|
|
cd source && for i in `cat ../$(DOWNLOADS)`; do wget --no-check-certificate $$i; done && for j in `ls *.zip`; do unzip $$j; rm $$j; done
|
|
touch download-stamp
|
|
|
|
unmanaged.wixobj: unmanaged.wxs redirector.exe download-stamp
|
|
candle unmanaged.wxs
|
|
|
|
unmanaged.msm: unmanaged.wixobj
|
|
light unmanaged.wixobj
|
|
|
|
bundle-scanner.exe: bundle-scanner.cs
|
|
$(CSC) bundle-scanner.cs
|
|
|
|
redirector.exe: redirector.cs
|
|
$(CSC) redirector.cs
|
|
|
|
scan: download-stamp bundle-scanner.exe
|
|
$(RUNTIME) bundle-scanner.exe --wix=unmanaged.wxs --bundle=source
|
|
|
|
CLEANFILES = source
|
|
EXTRA_DIST = redirector.cs unmanaged.wxs downloads.win32 ignores
|