#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk DEB_INSTALL_DOCS_ALL := INSTALL README LICENSE TODO # # License is used by nsis installers, so don't compress it. # DEB_COMPRESS_EXCLUDE := LICENSE DEB_SHLIBDEPS_INCLUDE := debian/tmp/usr/bin/hpgs DEB_DH_ALWAYS_EXCLUDE := .svn package = hpgs docdir = debian/tmp/usr/share/doc/$(package)-doc INSTALL_PROGRAM = install builddir = build/unix-shared docbuilddir = build/unix INSTROOTDIR=$(shell pwd)/debian/tmp common-build-arch:: cd $(builddir) && $(MAKE) COPT="-g -O2" prefix="/usr" cd $(docbuilddir) && $(MAKE) COPT="-O2" prefix="/usr" docs touch common-build-arch clean:: rm -f compile common-install-arch common-build-arch rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars cd $(builddir) && make dep=no distclean cd $(docbuilddir) && make dep=no distclean rm -rf doc/html doc/latex common-install-arch:: rm -rf debian/tmp install -d debian/tmp/DEBIAN $(docdir) cp -pr doc/* $(docdir) mkdir debian/tmp/usr/bin mkdir debian/tmp/usr/include mkdir debian/tmp/usr/lib cd $(builddir) && $(MAKE) install-devel STRIP=/bin/true DESTDIR=$(INSTROOTDIR) prefix="/usr" touch common-install-arch