PROGS = chmod prompts2mlf prompt proto2hmmdefs random_permute maketrihed gendict_swe FM_DIR=../FM all: $(PROGS) prompts2mlf: prompts2mlf.hs ghc --make -o $@ $< prompt: prompt.hs ghc -package hsshellscript --make -o $@ $< proto2hmmdefs: proto2hmmdefs.hs ghc --make -o $@ $< random_permute: random_permute.hs ghc --make -o $@ $< maketrihed: maketrihed.hs ghc --make -o $@ $< gendict_swe: gendict_swe.hs SAMPA_Swe_Mod.hs if [ -d $(FM_DIR)/phonetics ]; then \ ghc -i$(FM_DIR)/phonetics --make -o $@ $<; \ else \ echo "$(FM_DIR)/phonetics not found, not building gendict_swe" 1>&2; \ fi chmod: chmod a+x *.pl clean: -rm -f *.o *.hi $(PROGS)