File: rules

package info (click to toggle)
tofrodos 1.7.13%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 240 kB
  • ctags: 176
  • sloc: ansic: 992; makefile: 78
file content (26 lines) | stat: -rwxr-xr-x 723 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
26
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS   := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)


%:
	dh $@

override_dh_auto_clean:
	cd $(CURDIR)/src \
	&& $(MAKE) clean \
	&& $(RM) -r -v fromdos todos

override_dh_auto_build:
	cd $(CURDIR)/src && $(MAKE) CDEBUG="$(CFLAGS)" LDEBUG="$(LDFLAGS)"

override_dh_auto_install:
	cd $(CURDIR)/src && $(MAKE) install \
		BINDIR=$(CURDIR)/debian/tofrodos/usr/bin \
		MANDIR=$(CURDIR)/debian/tofrodos/usr/share/man/man1

get-orig-source:
	uscan --verbose --repack --compression xz --download-current-version --force-download