Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 45 lines (33 sloc) 0.89 kb
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
export VERSION=0.6
export PYTHON = python
export PYDOC = pydoc
export PYTHONPATH='.'
export HELP2MAN=help2man

all:
$(PYTHON) setup.py build

doc:
test -d docs/api || mkdir docs/api
cd docs/api/ ; $(PYDOC) -w ../../

man:
PYTHONPATH=$(PYTHONPATH) $(HELP2MAN) -N -o docs/man1/snap.1 bin/snaptool

install:
$(PYTHON) setup.py install --root=$(DESTDIR)
cp docs/man1/snap.1 $(DESTDIR)/usr/share/man/man1/

clean:
rm -rfv build
rm -fv snap/*.pyc
rm -fv snap/metadata/*.pyc
rm -fv snap/backends/*.pyc
rm -fv snap/backends/*/*.pyc

package:
test -d build || mkdir build
tar czvf build/snap-${VERSION}.tgz . --exclude=.git --exclude=build --transform='s,./,snap-$(VERSION)/,'

rpm: package
cp build/snap-$(VERSION).tgz ~/rpmbuild/SOURCES
rpmbuild -ba snap.spec

deb: clean
debuild -us -uc -i -b

distclean: clean

test:
PYTHONPATH=$(PYTHONPAT) ${PYTHON} test/run.py

.PHONY: test
Something went wrong with that request. Please try again.