File: rules

package info (click to toggle)
hpanel 0.3.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 148 kB
  • ctags: 162
  • sloc: ansic: 1,041; sh: 73; makefile: 54
file content (50 lines) | stat: -rwxr-xr-x 998 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/make -f

PACKAGE	  = hpanel
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

CFLAGS += \
 -I/usr/X11R6/include \
 -I/usr/include/freetype2 \
 -DHAVE_XPM \
 -DXFT \
 -DCLOCK 

get-changelog:
	awk '/Installation:/ {exit} /Changes/,/Installation:/ {print} ' \
	README \
	| sed -e 's/[[:space:]]$$//' \
	      -e 's/^\t/	/' \
	> $(CHANGELOG)

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman

override_dh_clean:
	# Preserve original file
	cp README.orig README.orig.keep
	dh_clean
	mv README.orig.keep README.orig

override_dh_installchangelogs:
	dh_installchangelogs  $(CHANGELOG)

override_dh_auto_configure:
	# Skip this step

override_dh_auto_build: man
	$(MAKE) CFLAGS="$(CPPFLAGS) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" hpanel

override_dh_auto_install:
	# Disable. See debian/install

%:
	dh $@

.PHONY: man get-changelog

# End of file