#!/usr/bin/make -f BUILDDIR = build_dir # secondly called by launchpad build: mkdir $(BUILDDIR); cd $(BUILDDIR); cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../debian/tmp/usr .. make -C $(BUILDDIR) # thirdly called by launchpad binary: binary-indep binary-arch binary-indep: # nothing to be done binary-arch: cd $(BUILDDIR); cmake -DCMAKE_BUILD_TYPE=Release -P cmake_install.cmake mkdir debian/tmp/DEBIAN dpkg-gencontrol -pmiracle-wm dpkg --build debian/tmp .. # firstly called by launchpad clean: rm -f build rm -rf $(BUILDDIR) .PHONY: binary binary-arch binary-indep clean