source: pkg/boss/non-free/human-icon-theme/trunk/debian/rules @ 5018

Revision 2917, 1.2 KB checked in by alanbach-guest, 6 years ago (diff)
  • Sync'd with Debian 0.24.debian-1
  • Property svn:executable set to *
Line 
1#!/usr/bin/make -f
2
3include /usr/share/cdbs/1/rules/debhelper.mk
4include /usr/share/cdbs/1/class/gnome.mk
5include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
6include /usr/share/cdbs/1/rules/simple-patchsys.mk
7include /usr/share/gnome-pkg-tools/1/rules/ubuntu-get-source.mk
8
9DISTRO := $(shell lsb_release -si)
10DIRLIST := 22x22 24x24 48x48
11
12# Anyway, defaults to Debian
13ifeq ($(DISTRO),)
14DISTRO := Debian
15endif
16
17clean::
18        @echo "=== Building for distribution: $(DISTRO) ==="
19        find debian/$(DISTRO) -name '*.png' | xargs rm -fv
20        $(SHELL) debian/clean-up.sh
21
22makebuilddir/human-icon-theme::
23        ./autogen.sh --prefix=/usr
24
25build:
26        @echo "=== Installing distribution specific overrides ==="
27        if [ -d debian/$(DISTRO) ]; then \
28            for dir in $(DIRLIST) ; do \
29              (cd debian/$(DISTRO)/$$dir/places/ && uudecode -o start-here.png start-here.uuencode) \
30            done; \
31        fi
32
33ICON_DIR := debian/human-icon-theme/usr/share/icons/Human
34
35binary-post-install/human-icon-theme::
36        # replace the Ubuntu logos with the distribution overrides
37        if [ -d debian/$(DISTRO) ]; then \
38            cp -rvf debian/$(DISTRO)/* $(ICON_DIR)/; \
39        fi
40        # don't ship the sng files
41        find $(ICON_DIR) -name '*.uuencode' | xargs rm -fv
42
Note: See TracBrowser for help on using the repository browser.