[Pkg-mozext-commits] [requestpolicy] 20/50: [ref] Makefile: allow .venv to be a symlink
David Prévot
taffit at moszumanska.debian.org
Mon Jun 27 12:50:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit f439fb1495b8b6a484f8d1d501d43c0f2aa28050
Author: Martin Kimmerle <dev at 256k.de>
Date: Sat Apr 16 19:49:23 2016 +0200
[ref] Makefile: allow .venv to be a symlink
* Allow ".venv" to be a symlink to an already existent but
empty directory.
* Use ".venv/requirements" as an "empty target" (see make docs).
---
Makefile | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/Makefile b/Makefile
index 0595533..fc076f1 100644
--- a/Makefile
+++ b/Makefile
@@ -361,17 +361,12 @@ mozrunner_prefs_ini := tests/mozrunner-prefs.ini
#-------------------------------------------------------------------------------
.PHONY: venv
-venv: .venv/bin/activate
-.venv/bin/activate: requirements.txt
- test -d .venv || virtualenv --prompt='(RP)' .venv
-
- @# With the `touch` command, this target is only executed
- @# when "requirements.txt" changes
- ( \
- source .venv/bin/activate ; \
- pip install -r requirements.txt ; \
- touch --no-create .venv/bin/activate ; \
- )
+venv: .venv/requirements
+.venv/requirements: requirements.txt | .venv/bin/activate
+ source $| ; pip install -r $<
+ touch $@
+.venv/bin/activate:
+ virtualenv --prompt='(RP)' .venv
#-------------------------------------------------------------------------------
# run firefox
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list