File: rules

package info (click to toggle)
software-properties 0.60.debian-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,080 kB
  • ctags: 285
  • sloc: python: 3,059; xml: 1,571; makefile: 27
file content (27 lines) | stat: -rwxr-xr-x 1,068 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
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM := pysupport

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

ifdef _cdbs_rules_debhelper
$(patsubst %,binary-install/%,software-properties-gtk) :: 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))
	$(if $(wildcard /usr/bin/dh_iconcache),dh_iconcache -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS))
endif

binary-post-install/software-properties-gtk::
	# replace Ubuntu logo with Debian one
	uudecode < debian/software-properties.png.uu && \
		mv software-properties.png \
			debian/software-properties-gtk/usr/share/icons/hicolor/48x48/apps/

clean::
	rm -rf build/