give version.py its own makefile rule and .gitignore line

This commit is contained in:
Will Woods 2011-10-24 18:49:39 -04:00
parent add3de21eb
commit 94ff38ccfa
2 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.pyc *.pyc
src/pylorax/version.py*

View File

@ -9,15 +9,17 @@ TAG = r$(VERSION)-$(RELEASE)
default: all 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 $(PYTHON) setup.py build
install: all install: all
@echo "num = '$(VERSION)-$(RELEASE)'" > src/pylorax/version.py
$(PYTHON) setup.py install --root=$(DESTDIR) $(PYTHON) setup.py install --root=$(DESTDIR)
clean: clean:
-rm -rf build -rm -rf build src/pylorax/version.py
tag: tag:
git tag -f $(TAG) git tag -f $(TAG)