#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 override_dh_auto_build: cd $(CMAKE_BINARY_DIR) dh_auto_build override_dh_install: mkdir -p $(CURDIR)/debian/tmp/etc/init.d mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/ mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/ cp -af $(CURDIR)/debian/smartcard-service-server.init $(CURDIR)/debian/tmp/etc/init.d/smartcard-service-server ln -s ../init.d/smartcard-service-server $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/S79smartcard-service-server ln -s ../init.d/smartcard-service-server $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/S79smartcard-service-server dh_install override_dh_installinit: %: dh $@