Blame sofort/core/pkgconf.mk

092ccd
# pkgconf.mk: rules for pkgconf manifest generation.
092ccd
# this file is covered by COPYING.SOFORT.
092ccd
092ccd
PKGCONF_VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
092ccd
092ccd
.pkgconf:
092ccd
092ccd
build/$(PACKAGE).pc: .pkgconf dirs.tag
092ccd
092ccd
build/$(PACKAGE).pc:
092ccd
	@touch $@
092ccd
	@chmod 0644 $@
092ccd
		PKGCONF_NAME='$(PKGNAME)' \
092ccd
		PKGCONF_DESC='$(PKGDESC)' \
092ccd
		PKGCONF_USRC='$(PKGUSRC)' \
092ccd
		PKGCONF_REPO='$(PKGREPO)' \
092ccd
		PKGCONF_PSRC='$(PKGPSRC)' \
092ccd
		PKGCONF_DURL='$(PKGDURL)' \
092ccd
		PKGCONF_BUGS='$(PKGBUGS)' \
092ccd
		PKGCONF_HOME='$(PKGHOME)' \
092ccd
		PKGCONF_DEFS='$(PKGDEFS)' \
092ccd
		PKGCONF_LIBS='$(PKGLIBS)' \
092ccd
					  \
092ccd
		PKGCONF_EXEC_PREFIX='$(EXEC_PREFIX)' \
092ccd
		PKGCONF_PREFIX='$(PREFIX)'           \
092ccd
		PKGCONF_LIBDIR='$(LIBDIR)'           \
092ccd
		PKGCONF_INCLUDEDIR='$(INCLUDEDIR)'   \
092ccd
		PKGCONF_VERSION='$(PKGCONF_VERSION)' \
092ccd
	$(PROJECT_DIR)/sofort/tools/pkgconf.sh > $@
092ccd
092ccd
install-pkgconf: build/$(PACKAGE).pc
092ccd
	mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
092ccd
	cp -p build/$(PACKAGE).pc    $(DESTDIR)$(LIBDIR)/pkgconfig
092ccd
092ccd
install-shared: install-pkgconf
092ccd
092ccd
install-static: install-pkgconf
092ccd
092ccd
.PHONY: .pkgconf install-pkgconf