diff options
author | Todd Zullinger <tmz@pobox.com> | 2008-03-17 15:39:12 -0400 |
---|---|---|
committer | Todd Zullinger <tmz@pobox.com> | 2008-03-17 15:39:12 -0400 |
commit | 5babbf84a3f98003a9443fe04fdc0df64eea97a9 (patch) | |
tree | d6ff9cdbaa6d25e5512044cbf174930966c3d902 /Makefile | |
download | git-package-5babbf84a3f98003a9443fe04fdc0df64eea97a9.tar.gz git-package-5babbf84a3f98003a9443fe04fdc0df64eea97a9.tar.xz git-package-5babbf84a3f98003a9443fe04fdc0df64eea97a9.zip |
initial import from CVS tag git-1_5_4_4-1_fc9
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dfd55ca --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: git +# $Id: Makefile,v 1.2 2006/04/10 16:47:48 chrisw Exp $ +NAME := git +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) |