# **************************************************************************** # # 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)/META-INF .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)/COPYING_OASIS $(INSTROOTDIR)/ $(CP) $(EXTRASDIR)/Copyright $(INSTROOTDIR)/ $(CP) $(EXTRASDIR)/README $(INSTROOTDIR)/ $(CP) $(EXTRASDIR)/OOo-3/d*.x* $(INSTROOTDIR)/ $(CP) $(EXTRASDIR)/OOo-3/META-INF/* $(INSTROOTDIR)/META-INF/ .PHONY: installer installer: @echo "*** Building installer ***" cd $(INSTROOTDIR) && zip -r smi.oxt * .PHONY: distro distro: ifeq ($(MAKELEVEL),0) @echo "*** DONE! ***" else $(CP) $(INSTROOTDIR)/*.oxt $(ISODISKDIR)/ $(CP) $(INSTROOTDIR)/smi.oxt $(DISTRODIR)/smi-$(DATE).oxt endif .PHONY: clean clean: rm -rf $(INSTROOTDIR)