File: rules

package info (click to toggle)
mkelfimage 2.7-7
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 744 kB
  • ctags: 1,336
  • sloc: ansic: 5,335; sh: 2,496; asm: 682; makefile: 176
file content (25 lines) | stat: -rwxr-xr-x 776 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
22
23
24
25
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

export CFLAGS += -fno-stack-protector
export LDFLAGS += -Wl,-O1 -Wl,--as-needed

DEB_CONFIGURE_EXTRA_FLAGS += --with-$(DEB_BUILD_ARCH_CPU) 
DEB_INSTALL_CHANGELOGS_ALL += News

cleanbuilddir::
	@# Clean up extra files.
	rm -rf objdir Makefile.conf
	@# Configure once to generate Makefile.conf.
	./configure
	$(MAKE) clean
	@# Configure once more for the build itself.

common-binary-post-install-arch common-binary-post-install-indep:: list-missing
	@# Delete extraneous directory created by upstream Makefile install target.
	rm -rf debian/mkelfimage/usr/share/mkelfImage