File: rules

package info (click to toggle)
update-manager 0.68.debian-7
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 6,796 kB
  • ctags: 814
  • sloc: python: 5,646; xml: 1,571; sh: 433; makefile: 356; ansic: 264
file content (49 lines) | stat: -rwxr-xr-x 1,818 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
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM := pysupport

# patched-clean are run when the patches are still in place
clean:: patched-clean

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
#include /usr/share/gnome-pkg-tools/1/rules/ubuntu-get-source.mk

ifneq ($(wildcard setup.py),)
patched-clean:: apply-patches
	cd $(DEB_SRCDIR) && python$(DEB_PYTHON_COMPILE_VERSION) $(DEB_PYTHON_SETUP_CMD) clean_i18n
else
patched-clean::
endif

clean::
	-find po/mo -name \*mo -exec rm {} \;
	-for pofile in po/*.debackup; do \
		if [ $${pofile} = 'po/*.debackup' ]; then break; fi; \
		mv $${pofile} $$(echo $${pofile} | sed 's,.debackup$$,,'); \
	done

post-patches::
	-for pofile in debian/pos/*.po; do \
		poname=$$(basename $${pofile}); \
		test -f po/$${poname}.debackup || \
			mv po/$${poname} po/$${poname}.debackup || true; \
		cp -af $${pofile} po/; \
	done

# binary-post-install/update-manager::
	# FIXME - should actually be integrated upstream for lenny
	#rm -rf debian/update-manager/usr/share/gnome/help/update-manager/C
	#uudecode < debian/manual.tar.uu && \
	#	tar -C debian/update-manager/usr/share/gnome/help/update-manager/ -xpf manual.tar && \
	#	rm manual.tar

# 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/%:
	dh_scrollkeeper -p$(cdbs_curpkg) $(DEB_DH_SCROLLKEEPER_ARGS)
	$(if $(wildcard /usr/bin/dh_gconf),dh_gconf -p$(cdbs_curpkg) $(DEB_DH_GCONF_ARGS))
	$(if $(wildcard /usr/bin/dh_desktop),dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS))