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:
|
2019-05-13 20:27:04 +05:30
|
|
|
install -d $(DESTDIR)$(MANDIR)/man5
|
|
|
|
install -m644 xbps.d.5 $(DESTDIR)$(MANDIR)/man5
|
2012-01-17 21:56:18 +05:30
|
|
|
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-11-06 14:28:04 +05:30
|
|
|
install -d $(DESTDIR)/$(SHAREDIR)/xbps.d
|
|
|
|
install -m644 repod-main.conf $(DESTDIR)/$(SHAREDIR)/xbps.d/00-repository-main.conf
|
|
|
|
install -m644 xbps.conf $(DESTDIR)/$(SHAREDIR)/xbps.d/xbps.conf
|
|
|
|
install -d $(DESTDIR)/$(SHAREDIR)/zsh/site-functions
|
|
|
|
install -m644 _xbps* $(DESTDIR)/$(SHAREDIR)/zsh/site-functions
|
|
|
|
install -d $(DESTDIR)/$(SHAREDIR)/bash-completion/completions
|
|
|
|
install -m644 xbps.bash $(DESTDIR)/$(SHAREDIR)/bash-completion/completions/xbps
|
2014-09-09 18:29:34 +05:30
|
|
|
for file in xbps-checkvers xbps-create xbps-dgraph xbps-install \
|
|
|
|
xbps-pkgdb xbps-query xbps-reconfigure xbps-remove xbps-rindex; do \
|
2014-11-06 14:28:04 +05:30
|
|
|
ln -sf xbps $(DESTDIR)/$(SHAREDIR)/bash-completion/completions/$$file; \
|
2014-09-09 18:29:34 +05:30
|
|
|
done
|
2012-01-17 21:56:18 +05:30
|
|
|
|
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
|
|
|
-rm -f $(DESTDIR)$(PKGCONFIGDIR)/$(PCFILE)
|
2014-11-06 14:28:04 +05:30
|
|
|
-rm -f $(DESTDIR)$(SHAREDIR)/xbps.d/00-repository-main.conf
|
|
|
|
-rm -f $(DESTDIR)$(SHAREDIR)/xbps.d/xbps.conf
|
2012-01-17 21:56:18 +05:30
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
-rm -f $(PCFILE)
|