diff icons/Makefile @ 3535:9ddf21ab5c84 trunk

Transit to Mk2.
author William Pitcock <nenolod@atheme.org>
date Mon, 17 Sep 2007 13:10:19 -0500
parents 30ab29ed32d8
children
line wrap: on
line diff
--- a/icons/Makefile	Sat Sep 15 11:07:24 2007 +0200
+++ b/icons/Makefile	Mon Sep 17 13:10:19 2007 -0500
@@ -1,7 +1,27 @@
-include ../mk/rules.mk
-include ../mk/init.mk
+include ../buildsys.mk
 
 pixmapsdir = $(datadir)/pixmaps
-OBJECTIVE_DATA = audacious.png:$(pixmapsdir)
+
+install-extra:
+	y="audacious.png"; \
+	for i in $$y; do \
+	        ${INSTALL_STATUS}; \
+		if ${MKDIR_P} ${DESTDIR}${pixmapsdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${pixmapsdir}/$$i; then \
+			${INSTALL_OK}; \
+		else \
+			${INSTALL_FAILED}; \
+		fi; \
+	done
 
-include ../mk/objective.mk
+uninstall-extra:
+	y="audacious.png"; \
+	for i in $$y; do \
+		if [ -f ${DESTDIR}${pixmapsdir}/$$i ]; then \
+			if rm -f ${DESTDIR}${pixmapsdir}/$$i; then \
+				${DELETE_OK}; \
+			else \
+				${DELETE_FAILED}; \
+			fi \
+		fi; \
+	done
+