Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MYLANG=fr
- PREFIX=/usr/local
- RELEASE=0.02
- APPNAME=charlifter-$(MYLANG)-$(RELEASE)
- TARFILE=$(APPNAME).tar
- BINDIR=$(PREFIX)/bin
- DATADIR=$(PREFIX)/share/charlifter
- INSTALL=/usr/bin/install
- INSTALL_SCRIPT=$(INSTALL) -m 555
- INSTALL_DATA=$(INSTALL) -m 444
- all : $(MYLANG)-table.hash
- $(MYLANG)-table.hash : $(MYLANG)-probs.txt
- sf.pl -m -l $(MYLANG)
- install : $(MYLANG)-table.hash
- $(INSTALL) -d $(DATADIR)
- $(INSTALL_DATA) $(MYLANG)-charinv.hash $(DATADIR)
- $(INSTALL_DATA) $(MYLANG)-charprobs.hash $(DATADIR)
- $(INSTALL_DATA) $(MYLANG)-context.hash $(DATADIR)
- $(INSTALL_DATA) $(MYLANG)-features.hash $(DATADIR)
- $(INSTALL_DATA) $(MYLANG)-table.hash $(DATADIR)
- uninstall :
- rm -f $(DATADIR)/$(MYLANG)-charinv.hash $(DATADIR)/$(MYLANG)-charprobs.hash $(DATADIR)/$(MYLANG)-features.hash $(DATADIR)/$(MYLANG)-context.hash $(DATADIR)/$(MYLANG)-table.hash
- dist : FORCE
- chmod 644 makefile COPYING README $(MYLANG)-probs.txt
- ln -s charlifter-$(MYLANG) ../$(APPNAME)
- tar cvhf $(TARFILE) -C .. $(APPNAME)/COPYING
- tar rvhf $(TARFILE) -C .. $(APPNAME)/makefile
- tar rvhf $(TARFILE) -C .. $(APPNAME)/README
- tar rvhf $(TARFILE) -C .. $(APPNAME)/$(MYLANG)-probs.txt
- gzip $(TARFILE)
- rm -f ../$(APPNAME)
- clean :
- rm -f *.hash ambigs.txt
- distclean :
- $(MAKE) clean
- rm -f *clean.txt
- FORCE:
- ## Targets below are for maintainer only ##
- ##
- ## evaluate with this command:
- ## cat EVALCORPUS | sf.pl -e -l xx
- $(MYLANG) : $(MYLANG)-clean.txt $(MYLANG)-prettyclean.txt $(MYLANG)-probs.txt
- $(MYLANG)-clean.txt :
- cp -f /usr/local/share/crubadan/fr/GLAN $@
- $(MYLANG)-prettyclean.txt :
- touch $@
- $(MYLANG)-probs.txt :
- cat $(MYLANG)/x?? | sf.pl -t -l $(MYLANG)
- ## Targets below here are for special applications - maintainer only ##
- maintainer-clean :
- $(MAKE) distclean
- rm -f $(MYLANG)-probs.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement