# makefile for genlib libraries
# Frederic Petrot : petrot@masi.ibp.fr
# version : 3.14
# date    : 28/01/93

SHELL = /bin/sh
ALLIANCE_LIB = /labo/lib
ALLIANCE_INCLUDE = /labo/include

distrib : genlib
	echo "#!/bin/csh -f" > 1 ; \
	echo "setenv ALLIANCE_LIB $(ALLIANCE_LIB)" >> 1 ; \
	echo "setenv ALLIANCE_INCLUDE $(ALLIANCE_INCLUDE)" >> 1 ; \
	cat genlib >> 1 ; \
	chmod a+x 1 ; \
	mv 1 ../bin/genlib

install : genlib
	echo "#!/labo/bin/tcsh -f" > 1 ; \
	echo "setenv ALLIANCE_LIB $(ALLIANCE_LIB)" >> 1 ; \
	echo "setenv ALLIANCE_INCLUDE $(ALLIANCE_INCLUDE)" >> 1 ; \
	cat genlib >> 1 ; \
	chmod a+x 1 ; \
	if [ -f ../bin/genlib ] ; then \
		mv ../bin/genlib ../bin/genlib.old ; \
	fi ; \
	mv 1 ../bin/genlib

clean :
