File: rules

package info (click to toggle)
tofrodos 1.7.13+ds-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 248 kB
  • sloc: ansic: 992; makefile: 75
file content (23 lines) | stat: -rwxr-xr-x 593 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
#!/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 $@ --sourcedirectory=src

override_dh_auto_clean:
	dh_auto_clean
	$(RM) -r -v src/fromdos src/todos

override_dh_auto_build:
	dh_auto_build -- CDEBUG="$(CFLAGS)" LDEBUG="$(LDFLAGS)"

override_dh_auto_install:
	dh_auto_install -- \
		BINDIR=$(CURDIR)/debian/tofrodos/usr/bin \
		MANDIR=$(CURDIR)/debian/tofrodos/usr/share/man/man1