=================================================================== RCS file: /home/cvs/OpenXM/src/uuencoded/Makefile,v retrieving revision 1.2 retrieving revision 1.5 diff -u -p -r1.2 -r1.5 --- OpenXM/src/uuencoded/Makefile 2002/09/03 01:05:28 1.2 +++ OpenXM/src/uuencoded/Makefile 2005/08/04 10:00:26 1.5 @@ -1,4 +1,4 @@ -# $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.1 2001/08/21 00:39:13 takayama Exp $ +# $OpenXM: OpenXM/src/uuencoded/Makefile,v 1.4 2005/08/04 09:58:23 ohara Exp $ OPENXM=../../../OpenXM OPENXM_CONTRIB=../../../OpenXM_contrib @@ -12,35 +12,34 @@ PHCFBSD=fbsd_phcv2p PHCLINUX=lin_phcv2p RM=rm -configure: - @if [ -f .configure_done ] ; then \ - echo "OpenXM/bin is already configured." ; \ - else \ +install: + @if [ ! -f .install_done ] ; then \ rm -f $(OPENXM_BIN)/phc ; \ - if [ "`uname`" = "FreeBSD" ]; then \ - make configure-freebsd ; \ + if [ "`which gnatmake`" ]; then \ + (cd ${OPENXM_CONTRIB}/PHC/Objects; mkdir tmp; ${MAKE} phc; strip tmp/phc); \ + cp -p ${OPENXM_CONTRIB}/PHC/Objects/tmp/phc ${OPENXM_BIN}/phc; \ + elif [ "`uname`" = "FreeBSD" ]; then \ + make install-freebsd ; \ + elif [ "`uname`" = "Linux" ]; then \ + make install-linux ; \ fi ; \ - if [ "`uname`" = "Linux" ]; then \ - make configure-linux ; \ - fi ; \ (cd $(OPENXM_BIN) ; rm -f ox_asir ; ln -f -s ./asir ox_asir) ; \ - touch ./.configure_done ; \ + touch ./.install_done ; \ fi - -configure-freebsd: +install-freebsd: if [ -f $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded ]; then \ uudecode -p $(OPENXM_UU)/${PHCFBSD}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \ chmod +x $(OPENXM_BIN)/phc ; \ fi -configure-linux: +install-linux: if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \ uudecode -o /dev/stdout $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \ chmod +x $(OPENXM_BIN)/phc ; \ fi -configure-linux-phc-on-freebsd: +install-linux-phc-on-freebsd: if [ -f $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded ]; then \ uudecode -p $(OPENXM_UU)/${PHCLINUX}.gz.uuencoded | zcat - > $(OPENXM_BIN)/phc ; \ chmod +x $(OPENXM_BIN)/phc ; \ @@ -50,7 +49,7 @@ configure-linux-phc-on-freebsd: distclean: (cd $(OPENXM_BIN) ; rm -f asir ox_asir phc) - @rm -f .configure_done + @rm -f .install_done uuencode: @if [ -f $(OPENXM_BIN)/$(PHC) ]; then \