#!/usr/bin/make -f # Made with the aid of debhelper by by Joey Hess, # based on the sample debian/rules file for GNU hello by Ian Jackson. # # This is free software; see the GNU General Public Licence # version 2 or later for copying conditions. There is NO warranty. # # Modified to suit yodl-2.00 by Frank B. Brokken # unexport NAME # # FORCE_SOURCE_DATE=1 is used for reproducible documentation builds. # Also see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950603 SHELL = /bin/sh # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 export ICMAKE_CPPSTD = --std=c++26 export DEB_BUILD_MAINT_OPTIONS=hardening=+all export CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS) export CXXFLAGS += ${ICMAKE_CPPSTD} -Wall -D_FORTIFY_SOURCE=2 export CFLAGS = $(shell dpkg-buildflags --get CFLAGS) export CFLAGS += -Wall -D_FORTIFY_SOURCE=2 export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) export FORCE_SOURCE_DATE=1 export CXX = g++ %: dh $@ override_dh_clean: ./build clean dh_clean override_dh_auto_build-arch: # Compile the package: ./build programs ./build macros ./build man # dh_auto_build override_dh_auto_build-indep: override_dh_auto_build-arch ./build manual dh_auto_build -i override_dh_auto_install-arch: # dh_auto_install # Install the package below debian/yodl: ./build install programs debian/yodl ./build install macros debian/yodl ./build install mandeb debian/yodl ./build install docs debian/yodl override_dh_auto_install-indep: ./build install manual debian/yodl-doc #print-version: # @@echo "Debian version: $(DEBVERSION)" # @@echo "Upstream version: $(UPVERSION)"