#DICDIR=../dicionario/
PTCDIR=../conversor/pt2ptao
BRCDIR=../conversor/br2brao
WPTDIR=../conversor/whichPT
INSTALLDIR=/usr/local/bin
DOCDIR=/usr/share/man/man1

#DICNAME=jspell.pt.AO
PTCNAME=pt2ptao
BRCNAME=br2brao
WPTNAME=whichPT
FOLDNAME=bigorna-kit-base

ALLPATH= $(PTCDIR)$(PTCNAME) $(BRCDIR)$(BRCNAME) $(WPTDIR)$(WPTNAME)
ALLNAME=$(DICNAME) $(PTCNAME) $(BRCNAME) $(WPTNAME)

all:
	@ echo
	@ echo ' Bigorna Kit - Simple - basic user distribution'
	@ echo '------------------------------'
	@ echo
	@ echo ' NOTE: to install and build Bigorna Kit - Simple '
	@ echo '       you need Perl '
	@ echo
	@ echo  make install - installs Bigorna Kit - Simple
	@ echo

install:
	cp $(PTCNAME) $(INSTALLDIR)/ 
	chmod 755 $(INSTALLDIR)/$(PTCNAME)
	cp $(PTCNAME).1 $(DOCDIR)/
	
	cp $(BRCNAME) $(INSTALLDIR)/ 
	chmod 755 $(INSTALLDIR)/$(BRCNAME)
	cp $(BRCNAME).1 $(DOCDIR)/
	
	cp $(WPTNAME) $(INSTALLDIR)/ 
	chmod 755 $(INSTALLDIR)/$(WPTNAME)
	cp $(WPTNAME).1 $(DOCDIR)/

uninstall:
	rm -f $(INSTALLDIR)/$(PTCNAME) $(DOCDIR)/$(PTCNAME).1
	rm -f $(INSTALLDIR)/$(BRCNAME) $(DOCDIR)/$(BRCNAME).1
	rm -f $(INSTALLDIR)/$(WPTNAME) $(DOCDIR)/$(WPTNAME).1


