Commit bd23c117 authored by Franco Fichtner's avatar Franco Fichtner

Mk: refactor install/plist code a wee bit

parent 9890172c
all:
install:
.for TREE in ${TREES}
@mkdir -p ${DESTDIR}${ROOT}
@cp -vr ${TREE} ${DESTDIR}${ROOT}
.endfor
plist:
.for TREE in ${TREES}
@(cd ${TREE}; find * -type f) | \
xargs -n1 printf "${ROOT}/${TREE}/%s\n"
.endfor
.PHONY: install plist
all:
ROOT= /usr/local/share
TREES= openvpn mobile-broadband-provider-info
install:
@mkdir -p ${DESTDIR}/usr/local/share
@cp -vr ${.CURDIR}/openvpn ${DESTDIR}/usr/local/share/
@cp -vr ${.CURDIR}/mobile-broadband-provider-info \
${DESTDIR}/usr/local/share/
plist:
@(cd ${.CURDIR}/openvpn; find * -type f) | \
xargs -n1 printf "/usr/local/share/openvpn/%s\n"
@(cd ${.CURDIR}/mobile-broadband-provider-info; find * -type f) | \
xargs -n1 printf \
"/usr/local/share/mobile-broadband-provider-info/%s\n"
.PHONY: install plist
.include "../Mk/tree.mk"
all:
ROOT= /usr/local/etc/pkg
TREES= repos fingerprints
install:
@mkdir -p ${DESTDIR}/usr/local/etc/pkg
@cp -vr ${.CURDIR}/repos ${DESTDIR}/usr/local/etc/pkg/
@cp -vr ${.CURDIR}/fingerprints ${DESTDIR}/usr/local/etc/pkg/
plist:
@(cd ${.CURDIR}/repos; find * -type f) | \
xargs -n1 printf "/usr/local/etc/pkg/repos/%s\n"
@(cd ${.CURDIR}/fingerprints; find * -type f) | \
xargs -n1 printf "/usr/local/etc/pkg/fingerprints/%s\n"
.PHONY: install plist
.include "../Mk/tree.mk"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment