Install an objfw-config package
This commit is contained in:
parent
376e4ce7e0
commit
8781264a61
4 changed files with 34 additions and 6 deletions
23
Makefile
23
Makefile
|
@ -3,3 +3,26 @@ SUBDIRS = src tests
|
|||
tests: src
|
||||
|
||||
include buildsys.mk
|
||||
include extra.mk
|
||||
|
||||
install-extra:
|
||||
i=ObjXMPP.oc; \
|
||||
packagesdir="${DESTDIR}$$(${OBJFW_CONFIG} --packages-dir)"; \
|
||||
${INSTALL_STATUS}; \
|
||||
if ${MKDIR_P} $$packagesdir && ${INSTALL} -m 644 $$i $$packagesdir/$$i; then \
|
||||
${INSTALL_OK}; \
|
||||
else \
|
||||
${INSTALL_FAILED}; \
|
||||
fi
|
||||
|
||||
uninstall-extra:
|
||||
i=ObjXMPP.oc; \
|
||||
packagesdir="${DESTDIR}$$(${OBJFW_CONFIG} --packages-dir)"; \
|
||||
if test -f $$packagesdir/$$i; then \
|
||||
if rm -f $$packagesdir/$$i; then \
|
||||
${DELETE_OK}; \
|
||||
else \
|
||||
${DELETE_FAILED}; \
|
||||
fi \
|
||||
fi; \
|
||||
rmdir $$packagesdir >/dev/null 2>&1 || true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue