[go: up one dir, main page]

Menu

[r491]: / charlifter-mi / makefile  Maximize  Restore  History

Download this file

69 lines (53 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
MYLANG=mi
PREFIX=/usr/local
RELEASE=0.01
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
DICTFILE=/usr/local/share/crubadan/$(MYLANG)/GLAN
$(MYLANG)-clean.txt :
cp -f $(DICTFILE) ./$@
$(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