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
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
DISTRO := $(shell dpkg-vendor --query vendor)
# Anyway, defaults to Debian
ifeq ($(DISTRO),)
DISTRO := Debian
endif
clean::
@echo "=== Building for distribution: $(DISTRO) ==="
$(SHELL) debian/clean-up.sh
makebuilddir/human-icon-theme::
./autogen.sh --prefix=/usr
ICON_DIR := debian/human-icon-theme/usr/share/icons/Human
binary-post-install/human-icon-theme::
# replace the Ubuntu logos with the distribution overrides
@echo "=== Installing distribution specific overrides ==="
if [ -d debian/$(DISTRO) ]; then \
cp -rvf debian/$(DISTRO)/* $(ICON_DIR)/; \
find $(ICON_DIR) -name '*.uue' | while read encoded; do \
decoded="`echo $$encoded | sed 's/\.uue$$//'`"; \
echo "Converting $$encoded to $$decoded"; \
uudecode -o "$$decoded" "$$encoded"; \
rm -vf "$$encoded"; \
done; \
fi
|