view Makefile @ 3541:19cbbbf1b738 trunk

fixed LDFLAGS syntax on POSIX compatible build environments
author Ben Tucker <ben.tucker@gmail.com>
date Mon, 17 Sep 2007 22:43:19 -0700
parents 9ddf21ab5c84
children 625af2797f35
line wrap: on
line source

DISTCLEAN = extra.mk

include buildsys.mk

SUBDIRS = src man po icons skins

OBJECTIVE_DATA =							\
	audacious.pc:$(LIBDIR)/pkgconfig				\
	audclient.pc:$(LIBDIR)/pkgconfig

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; \
	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