-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.pre
60 lines (42 loc) · 1.27 KB
/
Makefile.pre
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
lang = fur
version = 0.60-1
cwl_files = fur.cwl
data_files = fur.dat fur_phonet.dat
doc_files = LEIMI.txt COPYING.txt LICENCE.txt INSTALE.txt
extra_files = configure info Makefile.pre
multi_files = fur.multi friulian.alias
rws_files = fur.rws
distdir=aspell-${lang}-${version}
all: ${rws_files} ${data_files}
install: all
mkdir -p ${DESTDIR}${dictdir}/
cp ${rws_files} ${multi_files} ${DESTDIR}${dictdir}/
cd ${DESTDIR}${dictdir}/ && chmod 644 ${rws_files} ${multi_files}
mkdir -p ${DESTDIR}${datadir}/
cp ${data_files} ${DESTDIR}${datadir}/
cd ${DESTDIR}${datadir}/ && chmod 644 ${data_files}
clean:
rm -f ${rws_files}
uninstall:
-cd ${DESTDIR}${dictdir}/ && rm ${rws_files} ${multi_files} ${link_files}
-cd ${DESTDIR}${datadir}/ && rm ${data_files}
dist:
perl proc
./configure
@make dist-nogen
dist-nogen:
-rm -r ${distdir}
mkdir ${distdir}
cp -p ${extra_files} ${cwl_files} ${multi_files} ${doc_files} ${data_files} ${distdir}/
-cp -pr doc/ ${distdir}/
gtar cfj ${distdir}.tar.bz2 ${distdir}/
rm -r ${distdir}/
distcheck:
tar xfj ${distdir}.tar.bz2
cd ${distdir} && ./configure && make
rel:
mv ${distdir}.tar.bz2 ../rel
fur.rws: fur.cwl
.SUFFIXES: .cwl .rws
.cwl.rws:
${WORD_LIST_COMPRESS} d < $< | ${ASPELL} ${ASPELL_FLAGS} --lang=fur create master ./$@