# ************************************************************************* # # This makefile builds the nsis MSOffice installer for Windows # # ************************************************************************* # # Needed to get the correct hyphenation pattern file: LANG := $(shell pwd | rev | cut -d '/' -f1 | rev) # Language-specific paths: SHAREDLIB = $(TOOLLIBS)/shared/$(LANG) RESOURCES = $(TOOLLIBS)/win/MSOffice/$(LANG) ################################################## #***** start of language-specific variables: ***** WINSPELL = mssp3samiNorthern.lex HYPHPATTERNS = SamiNorthy-patlx SPELLIB = mssp3samiNorthern-NO.dll HYPHLIB = mshy3samiNorthern-NO.dll # NSIS installer filenames: NSISSPELLEX = mssp3samiNorthern.lex NSISHYPHLEX = mshy3samiNorthern-dic.lex NSISHYPATTERN = mshy3samiNorthern.lex #****** end of language-specific variables: ****** ################################################## all: lex lib lex: @echo "*** Copying lexicon files ***" $(CP) $(DOWNLOADDIR)/$(WINSPELL) $(COMPONENTDIR)/$(NSISSPELLEX) $(CP) $(DOWNLOADDIR)/$(WINSPELL) $(COMPONENTDIR)/$(NSISHYPHLEX) $(CP) $(SHAREDLIB)/hyph/$(HYPHPATTERNS) $(COMPONENTDIR)/$(NSISHYPATTERN) lib: @echo "*** Copying library files ***" $(CP) $(RESOURCES)/spell/$(SPELLIB) $(COMPONENTDIR)/ $(CP) $(RESOURCES)/hyph/$(HYPHLIB) $(COMPONENTDIR)/