File: rules

package info (click to toggle)
chmsee 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,448 kB
  • ctags: 460
  • sloc: sh: 3,831; ansic: 3,766; cpp: 297; python: 209; makefile: 155
file content (26 lines) | stat: -rwxr-xr-x 1,007 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
#!/usr/bin/make -f

# to re-generate debian/control, invoke
# fakeroot debian/rules debian/control DEB_AUTO_UPDATE_DEBIAN_CONTROL:=yes

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/dpatch.mk

INSTROOT = $(CURDIR)/debian/chmsee
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS=" -Wl,--as-needed"
DEB_CONFIGURE_EXTRA_FLAGS += --with-gecko=libxul

install/chmsee::
	install -m755 cs2w/cs2w.py ${INSTROOT}/usr/bin/cs2w
	mkdir -p ${INSTROOT}/usr/share/chmsee/cs2w
	cp -r cs2w/template ${INSTROOT}/usr/share/chmsee/cs2w/
	find ${INSTROOT}/usr/share/chmsee/cs2w/template -name 'Makefile*' -exec rm -f {} \;
	dh_desktop -pchmsee
	
# copy from /usr/share/cdbs/1/class/gnome.mk
clean::
	cd $(DEB_BUILDDIR) && \
	  rm -f intltool-extract intltool-merge intltool-update po/.intltool-merge-cache; \
	  if test -d doc; then find doc -name '*.omf.out' -exec rm -f \{\} \; ; fi; \
	  if test -d help; then find help -name '*.omf.out' -exec rm -f \{\} \; ; fi