include mk/rules.mk
include mk/objective.mk

SUBDIRS = Plugins libaudacious intl audacious po icons skin

install-posthook:
	@if test `whoami` = 'root'; then \
		echo "[running ldconfig to update system library cache]"; \
		/sbin/ldconfig; \
		echo "[system library cache updated]"; \
	fi
	@mkdir -p $(DESTDIR)/$(LIBDIR)/pkgconfig
	@mkdir -p $(DESTDIR)/$(mandir)/man1
	@mkdir -p $(DESTDIR)/$(datadir)/applications
	@$(INSTALL_DATA) audacious.pc $(DESTDIR)/$(LIBDIR)/pkgconfig/audacious.pc
	@$(INSTALL_DATA) audacious.1 $(DESTDIR)/$(mandir)/man1/audacious.1
	@$(INSTALL_DATA) audacious/audacious.desktop $(DESTDIR)/$(datadir)/applications/audacious.desktop
