##############################
# GENERAL MAKEFILE VERSION 1.0
##############################

TOP=..
include $(TOP)/Makefile.common

all:

distclean clean:
	rm *~ -vf

install: 
	mkdir -p $(DOCDIR)
	cp * $(DOCDIR)
	rm $(DOCDIR)/Makefile

remove:
	for file in * ; do rm -vf $(DOCDIR)/$$file ; done 

version:
	for file in `ls *.h *.cc *.c README* ` ; do \
	 echo "Process file"$$file ; \
         if [ -f $$file ] ; then \
          (head -2 $$file ; echo " * "$(COPYLEFT) ; tail +4 $$file) > $$file.tmp ; \
          mv -f $$file.tmp $$file ; \
         fi ; \
	done

