N=br2brao all: @ echo @ echo ' br2brao ' @ echo '------------------------------' @ echo @ echo ' NOTE: to install and build br2brao you need a recent' @ echo ' jspell release (1.1.3 or later) ' @ echo @ echo ' make install - installs br2brao ' @ echo ' make build - creates all the needed files, but do not ' @ echo ' install ' @ echo ' make uninstall - removes br2brao and documentation ' @ echo @ echo build: $N $N: $N.skel hash makefile cat $N.skel > $N iconv -f latin1 -t utf8 hash >> $N chmod 755 $N hash : regras2hash makefile perl regras2hash regras.br-brao clean: rm -f $N $N.tar.gz hash uninstall: rm /usr/local/bin/$N /usr/share/man/man1/$N.1 install: $N build cp $N /usr/local/bin/ chmod 755 /usr/local/bin/$N pod2man $N > /usr/share/man/man1/$N.1 package: $N.skel COPYING README makefile regras2hash regras.br-brao mkdir -p _tmp/$N cp $N.skel makefile COPYING README regras2hash regras.br-brao _tmp/$N (cd _tmp; tar czvf $N.tgz $N ) cp _tmp/$N.tgz . rm -rf _tmp