--- PamCut/makefile 2009/05/29 10:10:20 1.2 +++ PamCut/makefile 2009/06/15 14:43:30 1.3 @@ -77,6 +77,25 @@ -$(RM) $(CPP_DEPS) $(OBJS) libPamCut.so -@echo ' ' +distclean: + @rm -f ${PAM_LIB}/libPamCut.so + @rm -rf ${PAM_INC}/PamCut + @echo Installed files successfully removed. + +install: + @if [[ "${PAM_INC}" == "" || "${PAM_LIB}" == "" ]]; then \ + echo Pamela environment not set. ; \ + else \ + rootdir=`pwd`; \ + for file in `find -name "*.h"`; do \ + dir=`dirname $${file} | sed 's/.\///'`; \ + mkdir -p ${PAM_INC}/PamCut/$${dir}; \ + cp -u $${file} ${PAM_INC}/PamCut/$${dir}; \ + done; \ + cp -u libPamCut.so ${PAM_LIB}; \ + fi + @echo PamCut installed. + version: @echo @echo "**** Compiler version and compilation host ****" @@ -84,4 +103,5 @@ @hostname @echo -.PHONY: all clean dependents version +.PHONY: all clean distclean install dependents version +