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
|