[go: up one dir, main page]

File: rules

package info (click to toggle)
update-manager 0.200.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,900 kB
  • sloc: python: 4,557; xml: 1,571; makefile: 103; sh: 71
file content (28 lines) | stat: -rwxr-xr-x 1,210 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
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM := pysupport
DEB_COMPRESS_EXCLUDE := .js .inv changelog.txt changelog.html

include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk

build/update-manager-doc::
	-mkdir -p $(CURDIR)/doc/build
	-mkdir -p $(CURDIR)/doc/source/_static
	$(MAKE) -C $(CURDIR)/doc html
	mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/update-manager-doc
	cp -r $(CURDIR)/doc/build/html \
		$(CURDIR)/debian/tmp/usr/share/doc/update-manager-doc

	# avoid manipulating the documentation build directory
	-rm $(CURDIR)/debian/tmp/usr/share/doc/update-manager-doc/html/_static/jquery.js
	ln -s /usr/share/javascript/jquery/jquery.js \
		$(CURDIR)/debian/tmp/usr/share/doc/update-manager-doc/html/_static/jquery.js

# copied from CDBS; I cannot use gnome.mk, for it includes autotools.mk
# although this package does not use autotools; the build, thus, fails.
$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
	$(if $(wildcard /usr/bin/dh_gconf),dh_gconf -p$(cdbs_curpkg) $(DEB_DH_GCONF_ARGS))