[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / bin

File: [local] / OpenXM / bin / Attic / Makefile (download)

Revision 1.4, Sun Jan 9 21:04:04 2000 UTC (24 years, 4 months ago) by maekawa
Branch: MAIN
Changes since 1.3: +21 -9 lines

Use 'make uuencode' instead of uuencode_bin

# $OpenXM: OpenXM/bin/Makefile,v 1.4 2000/01/09 21:04:04 maekawa Exp $

LIBDIR=../lib
FEP=fep.linux
PHC=lin_phcv2p

configure:
	@if [ -f $(FEP).gz.uuencoded ]; then \
		uudecode -p $(FEP).gz.uuencoded | gzip -dc > $(FEP) ; \
		chmod +x $(FEP) ; \
	fi

	@if [ -f $(PHC).gz.uuencoded ]; then \
		uudecode -p $(PHC).gz.uuencoded | gzip -dc > $(PHC) ; \
		chmod +x $(PHC) ; \
	fi

	@if [ "`uname`" = "Linux" ]; then \
		rm -f fep phc ; \
		ln -f -s $(FEP) fep ; \
		ln -f -s $(PHC) phc ; \
	else \
		echo "We have the binary of phc only for linux." ; \
	fi

	rm -f asir
	ln -f -s $(LIBDIR)/asir/ox_asir asir

distclean:
	rm -f asir fep fep.linux lin_phcv2p phc

uuencode:
	@if [ -f $(FEP) ]; then \
		echo '$OpenXM: OpenXM/bin/Makefile,v 1.4 2000/01/09 21:04:04 maekawa Exp $' > $(FEP).gz.uuencoded ; \
		gzip -c $(FEP) | uuencode $(FEP).gz >> $(FEP).gz.uuencoded ; \
	fi
	@if [ -f $(PHC) ]; then \
		echo '$OpenXM: OpenXM/bin/Makefile,v 1.4 2000/01/09 21:04:04 maekawa Exp $' > $(PHC).gz.uuencoded ; \
		gzip -c $(PHC) | uuencode $(PHC).gz >> $(PHC).gz.uuencoded ; \
	fi