#############################################################################
##
##  Global Variables
##
VERSION = 1r1

PKGNAME = fplsa

ARCHIVE = $(PKGNAME)/$(PKGNAME)$(VERSION)

CC=gcc


#############################################################################
##
##  Targets
##
targets: default

# this target creates a bin-directory
bindir:
	if test ! -d bin;  then mkdir bin;  fi
	if test ! -d bin/@GAPARCH@;  then mkdir bin/@GAPARCH@;  fi

default: bindir src/fplsa4.c
	$(CC) -o bin/@GAPARCH@/fplsa4 src/fplsa4.c

clean:
	rm -f ../$(ARCHIVE).zoo ../$(ARCHIVE).tar.gz \
           read.co tst/docxpl.tst bin/@GAPARCH@/fplsa4
	( cd doc; rm -f \
          manual.aux manual.bbl manual.blg manual.dvi manual.idl manual.idx \
          manual.ilg manual.ind manual.lab manual.log manual.pdf manual.six \
          manual.toc )

manual: doc/fplsa.tex
#../atlasrep/etc/makexpl
	@( cd doc; \
           tex manual; tex manual; \
           ../../../doc/manualindex manual; \
           tex manual; tex manual; \
           pdftex manual; pdftex manual; \
           ../../../etc/convert.pl -i -t -c -n FPLSA . ../htm )
	@( grep -e "exceeded\|undefined" doc/manual.log; exit 0 )


#############################################################################
##
#E

