#
#  Makefile for the Essence source directory
#
#  INSTALLDIR is where all of the summarizers and executables will go
#  MANDIR is where all of the manual pages will go
#  CONFIGS are the configuration files for file type matching
#  PROGRAMS are the executables for the Essence prototype
#
INSTALLDIR 	= /usr/local/bin
MANDIR 		= /usr/local/man
CONFIGS 	= filename.cf fileout.cf stoplist
PROGRAMS 	= engine essence

all:
	./fixengine $(INSTALLDIR)
	chmod 755 engine

install:
	install -c -m 755 summarizers/*.sum $(INSTALLDIR)
	install -c -m 755 identifiers/*.ident* $(INSTALLDIR)
	install -c -m 644 $(CONFIGS) $(INSTALLDIR)
	install -c -m 755 $(PROGRAMS) $(INSTALLDIR)
	(cd support; $(MAKE) INSTALLDIR=$(INSTALLDIR) install)

clean:
	(cd support; $(MAKE) INSTALLDIR=$(INSTALLDIR) clean)
	-rm -f engine

verify:
	verify-dependencies < Dependencies
