File: rules

package info (click to toggle)
glib-d 2.4.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 344 kB
  • sloc: makefile: 14; sh: 6
file content (21 lines) | stat: -rwxr-xr-x 496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

include /usr/share/dh-dlang/dlang-flags.mk

configure_options =
configure_options += --native-file=$(CURDIR)/debian/meson/girtod.ini

ifneq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
configure_options += --cross-file=$(CURDIR)/debian/meson/girtod.ini
endif

%:
	dh $@

debian/meson/%.ini: debian/meson/%.ini.in
	sed \
		-e 's/@DEB_HOST_MULTIARCH@/${DEB_HOST_MULTIARCH}/g' \
		< $< > $@

override_dh_auto_configure: debian/meson/girtod.ini
	dh_auto_configure -- $(configure_options)