2012-01-17 21:56:18 +05:30
|
|
|
-include ../config.mk
|
|
|
|
|
|
|
|
PCFILE = libxbps.pc
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
2012-01-18 15:58:55 +05:30
|
|
|
sed -e "s|@@VERSION@@|${VERSION}|g" \
|
|
|
|
-e "s|@@PREFIX@@|${PREFIX}|g" \
|
|
|
|
-e "s|@@EPREFIX@@|${EPREFIX}|g" \
|
2012-01-17 21:56:18 +05:30
|
|
|
${PCFILE}.in > ${PCFILE}
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
install -d $(DESTDIR)$(PKGCONFIGDIR)
|
|
|
|
install -m644 $(PCFILE) $(DESTDIR)$(PKGCONFIGDIR)
|
2013-11-25 17:04:14 +05:30
|
|
|
install -d $(DESTDIR)/$(DBDIR)/keys
|
|
|
|
install -m644 *.plist $(DESTDIR)/$(DBDIR)/keys
|
2014-05-30 15:24:12 +05:30
|
|
|
install -d $(DESTDIR)/$(PREFIX)/share/xbps/repo.d
|
2014-06-04 11:36:46 +05:30
|
|
|
install -m644 repod-main.conf $(DESTDIR)/$(PREFIX)/share/xbps/repo.d/00-main.conf
|
2014-07-22 21:20:58 +05:30
|
|
|
install -d $(DESTDIR)/$(PREFIX)/share/zsh/site-functions
|
|
|
|
install -m644 _xbps* $(DESTDIR)/$(PREFIX)/share/zsh/site-functions
|
2014-09-09 18:29:34 +05:30
|
|
|
install -d $(DESTDIR)/$(PREFIX)/share/bash-completion/completions
|
|
|
|
install -m644 xbps.bash $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/xbps
|
|
|
|
for file in xbps-checkvers xbps-create xbps-dgraph xbps-install \
|
|
|
|
xbps-pkgdb xbps-query xbps-reconfigure xbps-remove xbps-rindex; do \
|
|
|
|
ln -s xbps $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/$$file; \
|
|
|
|
done
|
2012-01-17 21:56:18 +05:30
|
|
|
|
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
|
|
|
-rm -f $(DESTDIR)$(PKGCONFIGDIR)/$(PCFILE)
|
2014-05-30 15:24:12 +05:30
|
|
|
-rm -f $(DESTDIR)$(PREFIX)/share/xbps/repo.d/main.conf
|
2012-01-17 21:56:18 +05:30
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
-rm -f $(PCFILE)
|