File: rules

package info (click to toggle)
tcsh 6.24.13-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,928 kB
  • sloc: ansic: 52,661; sh: 4,107; csh: 1,129; lisp: 669; makefile: 460; perl: 56; python: 23
file content (38 lines) | stat: -rwxr-xr-x 1,124 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-include /usr/share/dpkg/buildflags.mk
export CPPFLAGS CFLAGS LDFLAGS

CFLAGS += -D_FILE_OFFSET_BITS=64

%:
	dh $@

override_dh_auto_build:
	@echo "blhc: ignore-line-regexp: ^(cc|gcc) -.*gethost.*"
	$(MAKE)
	$(MAKE) catalogs

override_dh_auto_install:
	dh_auto_install
	$(MAKE) install.man DESTDIR=$(CURDIR)/debian/tcsh/
	install -d -m 0755 debian/tcsh/etc debian/tcsh/etc/csh debian/tcsh/etc/csh/login.d debian/tcsh/etc/csh/cshrc.d debian/tcsh/usr/share/doc/tcsh
	install    -m 0644 debian/csh.cshrc debian/csh.login debian/csh.logout complete.tcsh debian/tcsh/etc
	install -D -m 0644 csh-mode.el debian/tcsh/usr/share/emacs/site-lisp/csh-mode.el
	dh_installchangelogs -a Fixes
	dh_installexamples -a complete.tcsh
	dh_installemacsen

ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
override_dh_auto_test:
	LS_COLORS= make check || (cat testsuite.log ; false)
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -f atconfig
	rm -rf tests/package.m4 tests/testsuite testsuite.dir testsuite.log