Skip to content

Commit

Permalink
make: add `package' target
Browse files Browse the repository at this point in the history
Requires FLAVOUR setting of not OpenSSL and git + gettext-tools
packages installed.
  • Loading branch information
fichtner committed Mar 11, 2016
1 parent 8912f90 commit 445504d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,18 @@ plist: force
@${MAKE} -C ${.CURDIR}/lang plist
@${MAKE} -C ${.CURDIR}/src plist

TMPDIR?= ${DESTDIR}/tmp/core-pkg

package: force
@rm -rf ${TMPDIR}
@${MAKE} DESTDIR=${TMPDIR} FLAVOUR=${FLAVOUR} install
@${MAKE} DESTDIR=${TMPDIR} scripts
@${MAKE} DESTDIR=${TMPDIR} manifest > ${TMPDIR}/+MANIFEST
@${MAKE} DESTDIR=${TMPDIR} plist > ${TMPDIR}/plist
@${PKG} create -v -m ${TMPDIR} -r ${TMPDIR} -p ${TMPDIR}/plist
@ls -lah *.txz
@rm -rf ${TMPDIR}

lint: force
find ${.CURDIR}/src ${.CURDIR}/scripts \
-name "*.sh" -type f -print0 | xargs -0 -n1 sh -n
Expand Down

0 comments on commit 445504d

Please sign in to comment.