From 94ff38ccfa7073c3c07248328c6c6e8dbebcc3d5 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Mon, 24 Oct 2011 18:49:39 -0400 Subject: [PATCH] give version.py its own makefile rule and .gitignore line --- .gitignore | 1 + Makefile | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0d20b648..acde37a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.pyc +src/pylorax/version.py* diff --git a/Makefile b/Makefile index f1a2f840..e5c54e7e 100644 --- a/Makefile +++ b/Makefile @@ -9,15 +9,17 @@ TAG = r$(VERSION)-$(RELEASE) default: all -all: +src/pylorax/version.py: lorax.spec + echo "num = '$(VERSION)-$(RELEASE)'" > src/pylorax/version.py + +all: src/pylorax/version.py $(PYTHON) setup.py build install: all - @echo "num = '$(VERSION)-$(RELEASE)'" > src/pylorax/version.py $(PYTHON) setup.py install --root=$(DESTDIR) clean: - -rm -rf build + -rm -rf build src/pylorax/version.py tag: git tag -f $(TAG)