File: rules

package info (click to toggle)
webxml 1.12-3
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 388 kB
  • ctags: 123
  • sloc: cpp: 1,054; xml: 62; makefile: 22
file content (29 lines) | stat: -rwxr-xr-x 818 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/makefile.mk

DEB_MAKE_CLEAN_TARGET    := distclean
DEB_MAKE_BUILD_TARGET    := all
DEB_MAKE_INSTALL_TARGET  :=
DEB_MAKE_CHECK_TARGET    :=

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS := -g -Wall -O0 -pipe -DQT_NO_DEBUG -DQT_SHARED
	CXXFLAGS := -g -Wall -O0 -pipe -DQT_NO_DEBUG -DQT_SHARED
else
	CFLAGS := -g -Wall -O2 -pipe -DQT_NO_DEBUG -DQT_SHARED
	CXXFLAGS := -g -Wall -O2 -pipe -DQT_NO_DEBUG -DQT_SHARED
endif

configure/webxml::
	qmake -o Makefile webxml.pro
	docbook-to-man debian/webxml.sgml > debian/webxml.1

install/webxml::
	install -m 755 webxml $(CURDIR)/debian/webxml/usr/bin/

clean::
	rm -rf debian/webxml.1 Makefile
	rm -rf .moc .ui .obj