-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (33 loc) · 963 Bytes
/
Makefile
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
SHELL = /bin/sh
MAKE = make
BUILDHASH = buildhash
MUNCHLIST = munchlist
LANGUAGE = furlan
AFFIXES = $(LANGUAGE).aff
DICTIONARY = $(LANGUAGE).dic
HASHFILE = $(LANGUAGE).hash
INSTALLDIR = /usr/lib/ispell
all: $(HASHFILE)
$(HASHFILE): $(AFFIXES) $(DICTIONARY)
rm -f $(HASHFILE)
$(BUILDHASH) $(DICTIONARY) $(AFFIXES) $(HASHFILE)
build: $(AFFIXES) $(DICTIONARY)
$(BUILDHASH) $(LANGUAGE).words+ $(AFFIXES) $(HASHFILE)
clean:
rm -f core $(HASHFILE) $(DICTIONARY).cnt \
$(DICTIONARY).stat
install:
@if [ -d $(INSTALLDIR) ]; \
then \
if [ -w $(INSTALLDIR) ]; \
then \
cp $(HASHFILE) $(AFFIXES) $(INSTALLDIR) && \
cd $(INSTALLDIR) && chmod 644 $(HASHFILE) $(AFFIXES) && \
echo "$(HASHFILE) e $(AFFIXES) copiâts in $(INSTALLDIR)"; \
else \
echo "Erôr no tu âs i permès par instalâ il file"; \
fi \
else \
echo "La directory di instalazion specificade ($(INSTALLDIR)) no esist."; \
echo "Coreç il Makefile."; \
fi