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
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
DEB_PYTHON_SYSTEM=pycentral
# Common rules
include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
# In order to run `make swig' one time only for the build
STAMP_MAKE_SWIG=debian/stamp-make-swig
# Don't compress .py, .glade and .gladep files
DEB_COMPRESS_EXCLUDE := .py .glade .gladep
# Documentations
DEB_HTML_DOC=debian/html
DEB_DESTDIR=debian/python-pyme
# Run `make swig' before building
post-patches::
if ! test -f $(STAMP_MAKE_SWIG); then \
PYTHON=/usr/bin/python make swig; \
touch $(STAMP_MAKE_SWIG); \
else \
echo "make swig already done"; \
fi
install/python-pyme-doc::
make docs
cp -r $(DEB_SRCDIR)/doc $(DEB_HTML_DOC)
clean::
# Clean the source tree
-rm -rf $(DEB_HTML_DOC) $(STAMP_MAKE_SWIG)
make reallyclean
|