#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) ifeq ($(origin CC),default) CC = $(DEB_HOST_GNU_TYPE)-gcc endif CHANGELOG = debian/upstream.changelog URL = https://www.daemonology.net/bsdiff/ # Run manually as needed get-changelog: lynx -dump $(URL) > $(CHANGELOG) override_dh_auto_build: $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o bsdiff bsdiff.c -lbz2 $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o bspatch bspatch.c -lbz2 override_dh_auto_install: # not needed: see debian/bsdiff.install and debian/bsdiff.manpages override_dh_installchangelogs: dh_installchangelogs $(CHANGELOG) %: dh $@ # End of file