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

File: [local] / OpenXM / src / tigers / Makefile (download)

Revision 1.2, Sat Jan 8 18:43:02 2000 UTC (24 years, 4 months ago) by maekawa
Branch: MAIN
CVS Tags: RELEASE_20000124
Changes since 1.1: +4 -1 lines

Add the target 'distclean' for the installed binary.

# $OpenXM: OpenXM/src/tigers/Makefile,v 1.2 2000/01/08 18:43:02 maekawa Exp $

TIGERS = ../../../OpenXM_contrib/TiGERS_0.9
CURDIR = ../../OpenXM/src/tigers
BINDIR = ../../bin

all: patch
	@if [ ! -f ./.make_done ]; then \
		(cd $(TIGERS) ; make all) \
	fi
	@touch ./.make_done

install: all
	install -c -s $(TIGERS)/tigers $(BINDIR)/tigers

clean: patch-clean
	(cd $(TIGERS) ; rm -f *.o tigers)
	@rm -f ./.make_done

distclean:
	rm -f $(BINDIR)/tigers

patch:
	@if [ ! -f ./.patch_done ]; then \
		(cd $(TIGERS) ; patch < $(CURDIR)/tigers.patch) \
	fi
	@touch ./.patch_done

patch-clean:
	@if [ -f ./.patch_done ]; then \
		(cd $(TIGERS) ; patch -R < $(CURDIR)/tigers.patch) \
	fi
	@rm -f ./.patch_done