Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. MYLANG=fr
  2. PREFIX=/usr/local
  3. RELEASE=0.02
  4. APPNAME=charlifter-$(MYLANG)-$(RELEASE)
  5. TARFILE=$(APPNAME).tar
  6. BINDIR=$(PREFIX)/bin
  7. DATADIR=$(PREFIX)/share/charlifter
  8. INSTALL=/usr/bin/install
  9. INSTALL_SCRIPT=$(INSTALL) -m 555
  10. INSTALL_DATA=$(INSTALL) -m 444
  11.  
  12. all : $(MYLANG)-table.hash
  13.  
  14. $(MYLANG)-table.hash : $(MYLANG)-probs.txt
  15. sf.pl -m -l $(MYLANG)
  16.  
  17. install : $(MYLANG)-table.hash
  18. $(INSTALL) -d $(DATADIR)
  19. $(INSTALL_DATA) $(MYLANG)-charinv.hash $(DATADIR)
  20. $(INSTALL_DATA) $(MYLANG)-charprobs.hash $(DATADIR)
  21. $(INSTALL_DATA) $(MYLANG)-context.hash $(DATADIR)
  22. $(INSTALL_DATA) $(MYLANG)-features.hash $(DATADIR)
  23. $(INSTALL_DATA) $(MYLANG)-table.hash $(DATADIR)
  24.  
  25. uninstall :
  26. rm -f $(DATADIR)/$(MYLANG)-charinv.hash $(DATADIR)/$(MYLANG)-charprobs.hash $(DATADIR)/$(MYLANG)-features.hash $(DATADIR)/$(MYLANG)-context.hash $(DATADIR)/$(MYLANG)-table.hash
  27.  
  28. dist : FORCE
  29. chmod 644 makefile COPYING README $(MYLANG)-probs.txt
  30. ln -s charlifter-$(MYLANG) ../$(APPNAME)
  31. tar cvhf $(TARFILE) -C .. $(APPNAME)/COPYING
  32. tar rvhf $(TARFILE) -C .. $(APPNAME)/makefile
  33. tar rvhf $(TARFILE) -C .. $(APPNAME)/README
  34. tar rvhf $(TARFILE) -C .. $(APPNAME)/$(MYLANG)-probs.txt
  35. gzip $(TARFILE)
  36. rm -f ../$(APPNAME)
  37.  
  38. clean :
  39. rm -f *.hash ambigs.txt
  40.  
  41. distclean :
  42. $(MAKE) clean
  43. rm -f *clean.txt
  44.  
  45. FORCE:
  46.  
  47. ## Targets below are for maintainer only ##
  48. ##
  49. ## evaluate with this command:
  50. ## cat EVALCORPUS | sf.pl -e -l xx
  51.  
  52. $(MYLANG) : $(MYLANG)-clean.txt $(MYLANG)-prettyclean.txt $(MYLANG)-probs.txt
  53.  
  54. $(MYLANG)-clean.txt :
  55. cp -f /usr/local/share/crubadan/fr/GLAN $@
  56.  
  57. $(MYLANG)-prettyclean.txt :
  58. touch $@
  59.  
  60. $(MYLANG)-probs.txt :
  61. cat $(MYLANG)/x?? | sf.pl -t -l $(MYLANG)
  62.  
  63. ## Targets below here are for special applications - maintainer only ##
  64.  
  65. maintainer-clean :
  66. $(MAKE) distclean
  67. rm -f $(MYLANG)-probs.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement