give version.py its own makefile rule and .gitignore line
This commit is contained in:
parent
add3de21eb
commit
94ff38ccfa
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
|
src/pylorax/version.py*
|
||||||
|
8
Makefile
8
Makefile
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user