GEOM = ../../..
include ${GEOM}/makefiles/Makedefs.global
include Makedefs

all:	${TARGETS}

include ${GEOM}/makefiles/Makerules.FORMSmodulesrc


install:	_installdata

all install:	hingehelp.h hingedata.h

_installdata:
	-${INSTALL} -O -m 444 -F ${GEOM}/data/geom  ${DATAFILES}


SED = 	sed \
		-e 's/\\/\\\\/g'		\
		-e 's/"/\\"/g'			\
		-e '1s/^\(.*\)$$/"\1/' 		\
		-e 's/^\(.*\)$$/\1\\n\\/'	\
		-e '$$s/^\(.*\)/\1n"/'

hingehelp.h:	hingehelp
hingedata.h:	hingedata

hingehelp.h hingedata.h:
	rm -f $@
	( echo '/*' ; \
	  echo ' * $@: generated automatically from file "$?"' ; \
	  echo ' *' ; \
	  echo ' *  to modify, edit "$?" and type "make $@"' ; \
	  echo ' */' ; \
	  ${SED} < $? ) > $@
