Blame sofort/core/pkgconf.mk

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