Blame makefile

Packit a8250b
# -*- makefile -*-
Packit a8250b
Packit a8250b
HPATH=`hunspell -D < /dev/null 2>&1| head -2| tail -1| perl -ne '$$l=$$_;($$f)=grep{-d $$_ && /^.../}split/:/,$$l; ($$f)=grep {/^.../}split/:/,$$l unless $$f;print"$$f\n"'`
Packit a8250b
Packit a8250b
all:
Packit a8250b
	@ echo "Type 'make install' to install this dictionary"
Packit a8250b
Packit a8250b
install:
Packit a8250b
	@ hunspell -v > /dev/null || \
Packit a8250b
                (echo "Hunspell is required. Plz install it. " && false)
Packit a8250b
	@ perl     -v > /dev/null || \
Packit a8250b
	        (echo "Perl is required. Try to install dictionary manually. " && false)
Packit a8250b
	mkdir -p $(HPATH)
Packit a8250b
	cp pt_PT.aff $(HPATH)
Packit a8250b
	cp pt_PT.dic $(HPATH)