#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. #export DH_VERBOSE = 1 # Upstream documentation uses the @today macro which causes # unreproducible builds. include /usr/share/dpkg/pkg-info.mk export FORCE_SOURCE_DATE = 1 # Reset all flags because dpkg's default buildflags propagate and # become hardcoded in gnustep-make as GNUstep's build system, which is # clearly undesirable (Bug#879085). CFLAGS := -g -O2 CXXFLAGS := $(CFLAGS) OBJCFLAGS := CPPFLAGS := LDFLAGS := # Instal in a temp dir export DESTDIR=$(CURDIR)/debian/tmp %: dh $@ \ --builddirectory=build-gnustep-make # Overriding the AC_PATH_PROG test for bash is necessary because it # produces different results with merged /usr, leading to # unreproducible builds. override_dh_auto_configure: dh_auto_configure -- \ --with-layout=debian SHELLPROG=/bin/bash # We don't have a gnustep-make installation to use, we create a temporary one # in the subdirectory ./tmp-installation, then run make again passing # GNUSTEP_MAKEFILES and PATH set to point to the new makefile installation override_dh_auto_build-indep: $(MAKE) -C build-gnustep-make mkdir $(CURDIR)/Documentation/build-gnustep-make-doc; \ cd $(CURDIR)/Documentation/build-gnustep-make-doc; \ ../../configure --prefix="$(CURDIR)/Documentation/temp-installation" \ --with-layout=debian; \ $(MAKE); \ $(MAKE) install $(MAKE) -C Documentation \ messages=yes \ GNUSTEP_MAKEFILES=$(CURDIR)/Documentation/temp-installation/share/GNUstep/Makefiles \ PATH="$$PATH:$(CURDIR)/Documentation/temp-installation/bin" override_dh_auto_install-indep: $(MAKE) -C build-gnustep-make install \ DESTDIR=$(CURDIR)/debian/tmp test -d Documentation/temp-installation && $(MAKE) -C Documentation install \ messages=yes \ GNUSTEP_MAKEFILES=$(CURDIR)/Documentation/temp-installation/share/GNUstep/Makefiles \ GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \ PATH="$$PATH:$(CURDIR)/Documentation/temp-installation/bin" \ DESTDIR=""