# ************************************************************************* # # This makefile builds the nsis MSOffice installer for Windows # # ************************************************************************* # export CP = /bin/cp -fp export MKDIR = /bin/mkdir -p NSIS = makensis # paths relative to the prooftools root dir: export ROOT = $(GTHOME)/prooftools TMP = $(ROOT)/tmp export DOWNLOADDIR = $(TMP)/download export TOOLLIBS = $(ROOT)/toollibs # local dirs & paths export INSTROOTDIR := $(shell pwd) export COMPONENTDIR := $(INSTROOTDIR)/files EXTRASDIR = resources # Adjust the following two lines: TITLE = Divvun for MS Office for Windows INSTALLERDOC = msOfficeWinSami.nsi LICENSE = LICENSE.txt LICENSEPATH = $(GTHOME) all: dirs language-packages docs installer distro .PHONY: dirs dirs: @echo "*** Setting up dirs ***" $(MKDIR) $(COMPONENTDIR) language-packages: $(MAKE) -C sme $(MAKE) -C smj $(MAKE) -C sma docs: $(CP) $(LICENSEPATH)/$(LICENSE) $(EXTRASDIR)/DavviSami_License.txt $(CP) $(LICENSEPATH)/$(LICENSE) $(EXTRASDIR)/Finnish_License.txt $(CP) $(LICENSEPATH)/$(LICENSE) $(EXTRASDIR)/English_License.txt $(CP) $(LICENSEPATH)/$(LICENSE) $(EXTRASDIR)/LuleSami_License.txt $(CP) $(LICENSEPATH)/$(LICENSE) $(EXTRASDIR)/Norwegian_License.txt $(CP) $(LICENSEPATH)/$(LICENSE) $(EXTRASDIR)/SouthernSami_License.txt $(CP) $(LICENSEPATH)/$(LICENSE) $(EXTRASDIR)/Swedish_License.txt installer: cd source && $(NSIS) $(INSTALLERDOC) .PHONY: distro distro: ifeq ($(MAKELEVEL),0) @echo "*** DONE! ***" else $(CP) *.exe $(ISODISKDIR)/ $(CP) *.exe $(DISTRODIR)/$(WINDOWSINSTNAME)-$(DATE).exe endif clean: rm -rf $(COMPONENTDIR) rm -rf $(EXTRASDIR)/*.txt rm -rf *.exe