File: rules

package info (click to toggle)
levee 3.5a-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 536 kB
  • ctags: 715
  • sloc: ansic: 7,401; pascal: 619; sh: 131; makefile: 64; asm: 29
file content (40 lines) | stat: -rwxr-xr-x 819 bytes parent folder | download | duplicates (3)
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
39
40
#!/usr/bin/make -f

CHANGELOG = debian/upstream.changelog

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

# Update manually
get-changelog:
	lynx -dump http://www.pell.portland.or.us/~orc/Code/levee/ > \
	$(CHANGELOG)

override_dh_installchangelogs:
	dh_installchangelogs $(CHANGELOG)

override_dh_auto_configure:
	# configure with --partial-install so the files won't be installed as
	# lv, then we can install them as levee
	./configure.sh --partial-install

override_dh_auto_build:
	$(MAKE)
	# Adjust names
	cp lv.1 levee.1
	cp lev levee

override_dh_clean:
	rm -f levee.1 levee
	# Clean up
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean

override_dh_auto_install:
	# See debian/install

%:
	dh $@

# End of file