#:ts=8
#
# $Id: Makefile,v 0.19 1994/01/28 18:51:37 cncl-adm Exp cncl-adm $
#
# Makefile CNCL bin
#
TOPDIR	= ..

include $(TOPDIR)/make.conf


PROGS = CNgenclass CNarray CNarray2 CNhier


all:	$(PROGS)

CNgenclass:	CNgenclass.pl
	./findperl >CNgenclass
	tail +2 CNgenclass.pl | \
	    sed -e 's:<INCDIR>:$(includedir):g' >>CNgenclass
	chmod +x CNgenclass

CNarray:	CNarray.pl
	./findperl >CNarray;
	tail +2 CNarray.pl | \
	    sed -e 's:<INCDIR>:$(includedir):g' >>CNarray; \
	chmod +x CNarray

CNarray2:	CNarray2.pl
	./findperl >CNarray2;
	tail +2 CNarray2.pl | \
	    sed -e 's:<INCDIR>:$(includedir):g' >>CNarray2; \
	chmod +x CNarray2

CNhier:		CNhier.pl
	./findperl >CNhier;
	tail +2 CNhier.pl | \
	    sed -e 's:<INCDIR>:$(includedir):g' >>CNhier; \
	chmod +x CNhier

lib:
	(cd ..; make lib)

veryclean::
	rm -f $(PROGS)

templates:: $(PROGS)

install:
	cp $(PROGS) $(bindir)

tests:

# Common stuff
include $(TOPDIR)/make.common
