############################################################################### ## Makefile for apertium-hin ############################################################################### RELEASE=0.1 VERSION=0.1.0 LANG1=hin BASENAME=apertium-$(LANG1) TARGETS_COMMON = $(LANG1).automorf.bin $(LANG1).autogen.bin \ $(LANG1).automorf.att.gz $(LANG1).autogen.att.gz \ $(LANG1).rlx.bin ############################################################################### ## Hindi transducer ############################################################################### $(LANG1).autogen.bin: $(BASENAME).$(LANG1).dix lt-comp rl $< $@ $(LANG1).automorf.bin: $(BASENAME).$(LANG1).dix lt-comp lr $< $@ $(BASENAME).$(LANG1).acx $(LANG1).autogen.att.gz: $(LANG1).autogen.bin lt-print $< | gzip -9 -c > $@ $(LANG1).automorf.att.gz: $(LANG1).automorf.bin lt-print $< | gzip -9 -c > $@ ############################################################################### ## Disambiguation rules ############################################################################### $(LANG1).rlx.bin: $(BASENAME).$(LANG1).rlx $(CGCOMP) $(CGCOMP) $< $@ ############################################################################### ## Distribution ############################################################################### EXTRA_DIST=$(BASENAME).$(LANG1).dix \ $(BASENAME).$(LANG1).rlx \ $(BASENAME).$(LANG1).acx \ modes.xml ############################################################################### ## Installation stuff ############################################################################### # # apertium_hin_dir: This is where the compiled binaries go # apertium_hin_srcdir: This is where the source files go apertium_hindir=$(prefix)/share/apertium/$(BASENAME)/ apertium_hin_srcdir=$(prefix)/share/apertium/$(BASENAME)/ apertium_hin_DATA=$(TARGETS_COMMON) pkgconfigdir = $(prefix)/share/pkgconfig pkgconfig_DATA = $(BASENAME).pc # Modes are not installed since they're all just "debug modes". All # modes are created by this goal. modes/$(LANG1)-morph.mode: modes.xml apertium-validate-modes modes.xml apertium-gen-modes modes.xml noinst_DATA=modes/$(LANG1)-morph.mode install-data-local: test -d $(DESTDIR)$(apertium_hin_srcdir) || mkdir -p $(DESTDIR)$(apertium_hin_srcdir) $(INSTALL_DATA) $(BASENAME).$(LANG1).dix $(DESTDIR)$(apertium_hin_srcdir) $(INSTALL_DATA) $(BASENAME).$(LANG1).rlx $(DESTDIR)$(apertium_hin_srcdir) CLEANFILES = $(TARGETS_COMMON) clean-local: -rm -rf .deps modes