#!/usr/bin/make -f DEB_INSTALL_MANPAGES_pxsl-tools=debian/pxslcc.1 include /usr/share/cdbs/1/rules/debhelper.mk # I'll have to check if running ./Setup.lhs is ok on !i386, !amd64 # I know that runhaskell Setup.lhs fails. Let's play it safe for now. setup-bin: if test ! -e Setup.lhs -a ! -e Setup.hs; then echo "No setup script found!"; exit 1; fi for setup in Setup.lhs Setup.hs; do if test -e $$setup; then ghc -package Cabal $$setup -o setup-bin; exit 0; fi; done clean:: test ! -x setup-bin || ./setup-bin clean rm -rf dist setup-bin Setup.hi Setup.ho Setup.o .*config* build/pxsl-tools:: setup-bin ./setup-bin configure --ghc --prefix=/usr -v2 ./setup-bin build binary-install/pxsl-tools:: setup-bin ./setup-bin copy --destdir=debian/pxsl-tools binary-post-install/pxsl-tools:: rm -rf debian/pxsl-tools/usr/share/doc/pxsl-tools-*