File: rules

package info (click to toggle)
xilinx-bootgen 2024.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,684 kB
  • sloc: cpp: 38,134; ansic: 15,729; yacc: 1,362; lex: 669; makefile: 54
file content (16 lines) | stat: -rwxr-xr-x 479 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --exclude=.la

override_dh_auto_configure:
	if dpkg-vendor --derives-from Ubuntu; then \
	  sed -i \
	    -e '/^Description: .*$$/i Provides: bootgen-xlnx (= $${source:Version})' \
	    -e '/^Description: .*$$/i Breaks: bootgen-xlnx (<= 2022.1-0ubuntu1)' \
	    -e '/^Description: .*$$/i Replaces: bootgen-xlnx (<= 2022.1-0ubuntu1)' \
	    debian/control; \
	fi
	dh_auto_configure -- --enable-static