# **************************************************************************** # # 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 # local dirs & paths export INSTROOTDIR := $(shell pwd)/proofingtools 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)/OOo-2.4/*.txt $(INSTROOTDIR)/ .PHONY: installer installer: aff-dic-distro @echo "*** Building OOo 2.4 distro ***" zip -j smi-pack.zip \ $(INSTROOTDIR)/spell.txt \ smi.zip .PHONY: aff-dic-distro aff-dic-distro: @echo "*** Building aff & dic distro ***" cp -f $(GTHOME)/gt/common/hunspell/version.txt $(INSTROOTDIR)/. echo $(DATE) >> $(INSTROOTDIR)/version.txt zip -j smi.zip \ $(INSTROOTDIR)/Copyright \ $(INSTROOTDIR)/GPL-3 \ $(INSTROOTDIR)/README \ $(INSTROOTDIR)/version.txt \ $(INSTROOTDIR)/*.dic \ $(INSTROOTDIR)/*.aff .PHONY: distro distro: ifeq ($(MAKELEVEL),0) @echo "*** DONE! ***" else $(CP) *.zip $(ISODISKDIR)/ $(CP) smi.zip $(DISTRODIR)/smi-$(DATE).zip $(CP) smi-pack.zip $(DISTRODIR)/smi-pack-$(DATE).zip endif .PHONY: clean clean: rm -rf $(INSTROOTDIR)