Mercurial > louis > dpkg-lightsd
view debian/rules @ 9:30a618eb52ae
Fix runtime directory detection
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Wed, 25 Nov 2015 02:27:34 -0800 |
parents | 940798f7d8f2 |
children | 3bdb3a81ce5d |
line wrap: on
line source
#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. DH_VERBOSE = 1 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk # see FEATURE AREAS in dpkg-buildflags(1) export DEB_BUILD_MAINT_OPTIONS = hardening=+all # see ENVIRONMENT in dpkg-buildflags(1) # package maintainers to append CFLAGS #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) endif ifeq (,$(wildcard /run)) RUNTIME_DIRECTORY=/run else RUNTIME_DIRECTORY=/var/run endif # main packaging script based on dh7 syntax %: dh $@ # debmake generated override targets # This is example for Cmake (See http://bugs.debian.org/641051 ) override_dh_auto_configure: dh_auto_configure -- \ -DCMAKE_BUILD_TYPE=RELEASE \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \ -DLGTD_RUNTIME_DIRECTORY=$(RUNTIME_DIRECTORY)/lightsd override_dh_auto_build: dh_auto_build --parallel override_dh_auto_install: dh_auto_install rm -f debian/lightsd/usr/share/doc/lightsd/COPYING