Install a pkgconfig file for libxbps.
This commit is contained in:
23
data/Makefile
Normal file
23
data/Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
-include ../config.mk
|
||||
|
||||
VERSION = 0.12
|
||||
PCFILE = libxbps.pc
|
||||
|
||||
.PHONY: all
|
||||
all:
|
||||
sed -e "s|@@VERSION@@|${VERSION}|g;s|@@PREFIX@@|${PREFIX}|g" \
|
||||
${PCFILE}.in > ${PCFILE}
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
install -d $(DESTDIR)$(PKGCONFIGDIR)
|
||||
install -m644 $(PCFILE) $(DESTDIR)$(PKGCONFIGDIR)
|
||||
|
||||
.PHONY: uninstall
|
||||
uninstall:
|
||||
-rm -f $(DESTDIR)$(PKGCONFIGDIR)/$(PCFILE)
|
||||
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm -f $(PCFILE)
|
Reference in New Issue
Block a user