Permalink
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (47 sloc) 1.45 KB
PYTHON=`which python`
DESTDIR=/
BUILDIR=$(CURDIR)/debian/ajenti
PROJECT=ajenti
VERSION=0.6.2
PREFIX=/usr
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
DOCBUILDDIR = docs/build
DOCSOURCEDIR = docs/source
ALLSPHINXOPTS = -d $(DOCBUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(DOCSOURCEDIR)
all:
doc:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCBUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
cdoc:
rm -rf $(DOCBUILDDIR)/*
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCBUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
install:
$(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE) --prefix $(PREFIX)
rpm:
rm -rf dist/*.rpm
$(PYTHON) setup.py sdist
#$(PYTHON) setup.py bdist_rpm --spec-file dist/ajenti.spec #--post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
rpmbuild -bb dist/ajenti.spec
mv ~/rpmbuild/RPMS/noarch/$(PROJECT)*.rpm dist
deb:
rm -rf dist/*.deb
$(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../
rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
dpkg-buildpackage -b -rfakeroot -us -uc
rm ../$(PROJECT)*.orig.tar.gz
rm ../$(PROJECT)*.changes
mv ../$(PROJECT)*.deb dist/
tgz:
rm dist/*.tar.gz || true
$(PYTHON) setup.py sdist
clean:
$(PYTHON) setup.py clean
rm -rf $(DOCBUILDDIR)/*
$(MAKE) -f $(CURDIR)/debian/rules clean
rm -rf build/ MANIFEST ajenti.egg-info
find . -name '*.pyc' -delete