File: rules

package info (click to toggle)
hpanel 0.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 148 kB
  • ctags: 158
  • sloc: ansic: 1,041; sh: 73; makefile: 41
file content (35 lines) | stat: -rwxr-xr-x 647 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
#!/usr/bin/make -f

PACKAGE   = hpanel
CHANGELOG = debian/upstream.changelog

CFLAGS	 += -Wl,-z,defs \
		-I/usr/X11R6/include \
		-I/usr/include/freetype2 \
		-DHAVE_XPM -DXFT -DCLOCK

get-changelog:
	awk '/Installation:/ {exit} /Changes/,/Installation:/ {print} ' \
	README > $(CHANGELOG)

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

override_dh_installchangelogs: get-changelog
	dh_installchangelogs  $(CHANGELOG)

override_dh_auto_configure:
	# Skip this step

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

override_dh_auto_install:
	# Skip this step

%:
	dh $@

.PHONY: man get-changelog

# End of file