1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
# dogtail *development* Makefile
all: install3 install2
install: clean
python setup.py build
python setup.py install --root=$(DESTDIR)
install3: clean3
python3 setup.py build
python3 setup.py install --root=$(DESTDIR)
install2: clean2
python2 setup.py build
python2 setup.py install --root=$(DESTDIR)
clean:
rm -rf api_docs/
rm -f MANIFEST
rm -rf build dist
find . -name '*.pyc' -exec rm {} \;
clean2: clean
python2 setup.py clean
clean3: clean
python3 setup.py clean
check:
pep8 --max-line-length=120 dogtail/*.py tests/*.py scripts/* sniff/sniff
test:
nosetests tests/
test2:
nosetests2 tests/
test3:
nosetests3 tests/
tarball:
python3 setup.py sdist
rpm: tarball
# Build using the custom rpmrc in the rpms/ sub-dir
rpmbuild -tb dist/dogtail-*.tar.gz
# Move the source and binary RPMs to dist/
mv ~/rpmbuild/RPMS/noarch/* dist/
srpm: rpm_prep
# Build using the custom rpmrc in the rpms/ sub-dir
rpmbuild --rcfile /usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc:`pwd`/rpms/tmp.rpmrc -ts dist/dogtail-*.tar.gz
# Move the source and binary RPMs to dist/
mv rpms/SRPMS/* dist/
rm -rf rpms/
apidocs: apidocs_html apidocs_pdf
apidocs_html:
epydoc --html --config epydoc.conf
apidocs_pdf:
epydoc --pdf --config epydoc.conf
mv api_docs/api.pdf api_docs/dogtail.pdf
update_apidocs: apidocs
# Sadly, I'm still the only one who can update the API docs.
ssh zmc@fedorapeople.org rm -rf \~/public_html/dogtail/epydoc/*
scp api_docs/*.{html,css,png,pdf} zmc@fedorapeople.org:~/public_html/dogtail/epydoc/
|