File: makefile

package info (click to toggle)
iportuguese 20020903-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 472 kB
  • ctags: 7
  • sloc: makefile: 59
file content (34 lines) | stat: -rw-r--r-- 988 bytes parent folder | download
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
#---------------------------------------------------------------------
# make install

#ISPELLLIB=/usr/lib/ispell
ISPELLLIB=`ispell -vv | grep 'LIBDIR' | sed -e 's/.*"\(.*\)"/\1/'`
P=portugues

BASE= portugues.aff portugues.dic makefile README ispell.port.spec ver
#--------------------------------------------------------------------- 

portugues.hash: portugues.dic portugues.aff
	buildhash portugues.dic portugues.aff portugues.hash

install : $P.hash 
#	cp $P.hash `ispell -vv | grep 'LIBDIR' | sed -e 's/.*"\(.*\)"/\1/'` 
#$(ISPELLLIB)
	cp $P.hash $(ISPELLLIB)/
	-rm $(ISPELLLIB)/port.hash
	ln -s $(ISPELLLIB)/$P.hash $(ISPELLLIB)/port.hash

rpm: ispell.port.tgz
	mv ispell.port.tgz /usr/src/redhat/SOURCES/
	rpm -ba ispell.port.spec

ispell.port.tgz: $(BASE)
	rm -rf ispell.port-`./ver`
	mkdir -p ispell.port-`./ver`
	cp $(BASE) ispell.port-`./ver`
	tar -cvzf ispell.port.tgz ispell.port-`./ver`
#	tar -cvzf ispell.port.tgz $(BASE)
#	rm -rf ispell.port-`./ver`/

clean:
	-rm *.hash