core/pkg/Makefile
Franco Fichtner da19c68bf5 make: split install' and plist' targets
While there, make install provide output as well and
mop up a few minor issues with the previous code.
2015-07-16 13:47:54 +02:00

19 lines
566 B
Makefile

all:
install:
@mkdir -p ${DESTDIR}
@cp -v ${.CURDIR}/+PRE_DEINSTALL ${DESTDIR}
@cp -v ${.CURDIR}/+POST_INSTALL ${DESTDIR}
@cp -v ${.CURDIR}/+MANIFEST ${DESTDIR}
@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