# **************************************************************************** # # This is a makefile that builds a Hunspell distro for OpenOffice 3.x # # **************************************************************************** # # Tools: MKDIR = /bin/mkdir -p CP = /bin/cp -fpR # paths relative to the prooftools root dir: export ROOT = $(GTHOME)/prooftools TMP = $(ROOT)/tmp export DOWNLOADDIR = $(TMP)/download export TOOLLIBS = $(ROOT)/toollibs export DATE = $(shell date +%Y%m%d) export HUTARPREF = hunspell-smi export HUVERSION = $(shell cat $(GTHOME)/gt/common/hunspell/version.txt) export HUTARDIR = $(HUTARPREF)-$(HUVERSION).$(DATE) # local dirs & paths export INSTROOTDIR := $(shell pwd)/$(HUTARDIR) EXTRASDIR = $(TOOLLIBS)/hunspell all: dirs language-packages scripts installer distro .PHONY: dirs dirs: @echo "*** Setting up dirs ***" $(MKDIR) $(INSTROOTDIR) .PHONY: language-packages language-packages: @echo "*** Building language packages ***" $(CP) $(DOWNLOADDIR)/*.aff $(INSTROOTDIR)/ $(CP) $(DOWNLOADDIR)/*.dic $(INSTROOTDIR)/ .PHONY: scripts scripts: @echo "*** Copying scripts and resources ***" $(CP) $(GTHOME)/LICENSE.txt $(INSTROOTDIR)/GPL-3 $(CP) $(EXTRASDIR)/Copyright $(INSTROOTDIR)/ $(CP) $(EXTRASDIR)/README $(INSTROOTDIR)/ $(CP) $(EXTRASDIR)/Linux/* $(INSTROOTDIR)/ .PHONY: installer installer: @echo "*** Building Linux distro ***" tar czf $(HUTARDIR).tar.gz $(HUTARDIR) .PHONY: distro distro: ifeq ($(MAKELEVEL),0) @echo "*** DONE! ***" else $(CP) *.tar.gz $(ISODISKDIR)/ $(CP) *.tar.gz $(DISTRODIR)/ endif .PHONY: clean clean: rm -rf $(HUTARPREF)-*