Commit 4e7f7d8d authored by Franco Fichtner's avatar Franco Fichtner

make: improve previous and add `upgrade' target while at it

(cherry picked from commit d6ad3cdd)
parent 64a37fa9
...@@ -167,17 +167,26 @@ plist: force ...@@ -167,17 +167,26 @@ plist: force
@${MAKE} -C ${.CURDIR}/lang plist @${MAKE} -C ${.CURDIR}/lang plist
@${MAKE} -C ${.CURDIR}/src plist @${MAKE} -C ${.CURDIR}/src plist
TMPDIR?= ${DESTDIR}/tmp/core-pkg WRKDIR?=${.CURDIR}/work
WRKSRC= ${WRKDIR}/src
PKGDIR= ${WRKDIR}/pkg
package: force package: force
@rm -rf ${TMPDIR} @${PKG} info gettext-tools > /dev/null
@${MAKE} DESTDIR=${TMPDIR} FLAVOUR=${FLAVOUR} install @${PKG} info git > /dev/null
@${MAKE} DESTDIR=${TMPDIR} scripts @rm -rf ${WRKSRC} ${PKGDIR}
@${MAKE} DESTDIR=${TMPDIR} manifest > ${TMPDIR}/+MANIFEST @${MAKE} DESTDIR=${WRKSRC} FLAVOUR=${FLAVOUR} install
@${MAKE} DESTDIR=${TMPDIR} plist > ${TMPDIR}/plist @${MAKE} DESTDIR=${WRKSRC} scripts
@${PKG} create -v -m ${TMPDIR} -r ${TMPDIR} -p ${TMPDIR}/plist @${MAKE} DESTDIR=${WRKSRC} manifest > ${WRKSRC}/+MANIFEST
@ls -lah *.txz @${MAKE} DESTDIR=${WRKSRC} plist > ${WRKSRC}/plist
@rm -rf ${TMPDIR} @${PKG} create -v -m ${WRKSRC} -r ${WRKSRC} \
-p ${WRKSRC}/plist -o ${PKGDIR}
@echo -n "Sucessfully built "
@cd ${PKGDIR}; find . -name "*.txz" | cut -c3-
upgrade: package
${PKG} delete -y ${CORE_NAME}
${PKG} add ${PKGDIR}/*.txz
lint: force lint: force
find ${.CURDIR}/src ${.CURDIR}/scripts \ find ${.CURDIR}/src ${.CURDIR}/scripts \
......
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