aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-03-05 17:54:46 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-03-05 17:54:46 +0100
commit40abbb8ded61f4ef38eed0c33f53d4c6e4b3ff30 (patch)
tree04397f469d71b6b74028859e838a3695ec2af141
parentDon't use pam_motd and pam_mail with OpenPAM. (diff)
downloadpambase-40abbb8ded61f4ef38eed0c33f53d4c6e4b3ff30.tar.gz
pambase-40abbb8ded61f4ef38eed0c33f53d4c6e4b3ff30.tar.bz2
pambase-40abbb8ded61f4ef38eed0c33f53d4c6e4b3ff30.zip
Allow to skip over git calls.pambase-20080305
This should fix bug #212395.
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d898678..671f64f 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,10 @@ CPP=cpp
# The pam.d file to create
PAMD=system-auth system-login system-local-login system-remote-login other
+# command for git (the DVCS); set this to "true" to ignore GIT support
+# (i.e.: in the ebuild)
+GIT=git
+
# Get this by default, even if I'd like avoid it...
ifeq "$(IMPLEMENTATION)" ""
IMPLEMENTATION=linux-pam
@@ -45,8 +49,8 @@ endif
dist: $(PACKAGE)-$(VERSION).tar.bz2
-$(PACKAGE)-$(VERSION).tar.bz2: $(shell git ls-files)
- git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ HEAD | bzip2 > $@
+$(PACKAGE)-$(VERSION).tar.bz2: $(shell $(GIT) ls-files)
+ $(GIT) archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ HEAD | bzip2 > $@
$(PAMD): %: %.in
$(CPP) -traditional-cpp -P $(PAMFLAGS) $< -o $@