include ../rules/make.rules PHPFILES=${wildcard *.php} ${wildcard *.html} JPGRAPH=${wildcard jpgraph/*.php} ${wildcard jpgraph/*.ttf} OTHERFILES=${wildcard *.tex} ${wildcard *.ttf} ${wildcard *.TTF} ${wildcard *.htm} ${wildcard *.xml} ${wildcard *.pl} ${wildcard *.pm} ${wildcard ../shell/*.pl} ${wildcard ../shell/*.pm} all: install: all ${LIBPATH} ${LIBPATH}/jpgraph installjp.ok ${PHPFILES} ${OTHERFILES} @cp -f ${PHPFILES} ${LIBPATH} @cp -f ${OTHERFILES} ${LIBPATH}; chmod a+x ${LIBPATH}/*.pl @${REPLACE} -r '__DBUSER__' -s '${DBUSER}' -f '${LIBPATH}/class.php' @${REPLACE} -r '__DBPWD__' -s '${DBPWD}' -f '${LIBPATH}/class.php' @${REPLACE} -r '__DBHOST__' -s '${DBHOST}' -f '${LIBPATH}/class.php' @${REPLACE} -r '__DBNAME__' -s '${DBNAME}' -f '${LIBPATH}/class.php' @${REPLACE} -r '__INITBQ__' -s '${INITBQ}' -f '${LIBPATH}/class.php' installjp.ok : ${LIBPATH}/jpgraph ${JPGRAPH} @echo "installing ${NAME}/php files" @if [ -n "${JPGRAPH}" ]; then cp ${JPGRAPH} ${LIBPATH}/jpgraph; fi @date > $@ ${LIBPATH}/jpgraph: @echo "creating $@" @mkdir -p $@ clean: @echo "doing $@" rm -f *~ ${LIBPATH}: @echo "creating $@" @mkdir -p $@