diff Makefile @ 3535:9ddf21ab5c84 trunk

Transit to Mk2.
author William Pitcock <nenolod@atheme.org>
date Mon, 17 Sep 2007 13:10:19 -0500
parents 774cc92d936e
children 625af2797f35
line wrap: on
line diff
--- a/Makefile	Sat Sep 15 11:07:24 2007 +0200
+++ b/Makefile	Mon Sep 17 13:10:19 2007 -0500
@@ -1,71 +1,32 @@
-.SILENT:
+DISTCLEAN = extra.mk
 
-include mk/rules.mk
-include mk/init.mk
+include buildsys.mk
 
 SUBDIRS = src man po icons skins
 
-include mk/objective.mk
-
-install-posthook:
-	@if test `whoami` = 'root' && test -z "$(DESTDIR)"; then \
-		echo; \
-		echo "WARNING:"; \
-		echo "On some systems, it might be required that you run"; \
-		echo "ldconfig. However, this isn't done automatically"; \
-		echo "because some ldconfig versions might break the system"; \
-		echo "if it's called without any parameters."; \
-	fi
-
 OBJECTIVE_DATA =							\
 	audacious.pc:$(LIBDIR)/pkgconfig				\
 	audclient.pc:$(LIBDIR)/pkgconfig
 
-build-posthook:
-	@( \
-		echo; \
-		echo "Now type '$(MAKE) documentation-build' to build the audacious SDK docs."; \
-		echo "This will require GTK-DOC to be installed."; \
-		echo; \
-	);
-
-documentation-build:
-	( \
-		if [ ! -d doc ]; then \
-			mkdir -p doc/libaudacious/xml; \
-			mkdir -p doc/audacious/xml; \
+install-extra:
+	y="audacious.pc audclient.pc"; \
+	for i in $$y; do \
+	        ${INSTALL_STATUS}; \
+		if ${MKDIR_P} ${DESTDIR}${libdir}/pkgconfig && ${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/pkgconfig/$$i; then \
+			${INSTALL_OK}; \
+		else \
+			${INSTALL_FAILED}; \
 		fi; \
-		cd doc/libaudacious; \
-			gtkdoc-scan --module=libaudacious --source-dir=../../src/libaudacious; \
-		cd ../..; \
-		cd doc/audacious; \
-			gtkdoc-scan --module=audacious --source-dir=../../src/audacious --ignore-headers=intl; \
-		cd ../..; \
-		cd doc/libaudacious; \
-			gtkdoc-mktmpl --module=libaudacious; \
-		cd ../..; \
-		cd doc/audacious; \
-			gtkdoc-mktmpl --module=audacious; \
-		cd ../..; \
-		cd doc/libaudacious; \
-			gtkdoc-mkdb --module=libaudacious --source-dir=../../src/libaudacious/ --output-format=xml --main-sgml-file=xml/libaudacious-main.sgml; \
-		cd ../..; \
-		cd doc/audacious; \
-			gtkdoc-mkdb --module=audacious --source-dir=../../src/audacious/ --ignore-files=intl --output-format=xml --main-sgml-file=xml/audacious-main.sgml; \
-		cd ../..; \
-		rm -rf doc/libaudacious/html; \
-		mkdir -p doc/libaudacious/html; \
-		rm -rf doc/audacious/html; \
-		mkdir -p doc/audacious/html; \
-		cd doc/libaudacious/html; \
-			gtkdoc-mkhtml libaudacious ../libaudacious-main.sgml; \
-		cd ../../..; \
-		cd doc/audacious/html; \
-			rm ../xml/xml; \
-			ln -sf ../xml ../xml/xml; \
-			gtkdoc-mkhtml audacious ../xml/audacious-main.sgml; \
-		cd ../../..; \
-		echo; \
-		echo "The audacious SDK documentation was built successfully in doc/."; \
-		echo; \
-	);
+	done
+
+uninstall-extra:
+	y="audacious.pc audclient.pc"; \
+	for i in $$y; do \
+		if [ -f ${DESTDIR}${libdir}/pkgconfig/$$i ]; then \
+			if rm -f ${DESTDIR}${libdir}/pkgconfig/$$i; then \
+				${DELETE_OK}; \
+			else \
+				${DELETE_FAILED}; \
+			fi \
+		fi; \
+	done