Skip to content

Commit

Permalink
refs #100911 Merge remote-tracking branch 'origin/100911-ccnx-makefil…
Browse files Browse the repository at this point in the history
…e-needs-pkgbin-target'

* origin/100911-ccnx-makefile-needs-pkgbin-target:
  refs #100911 Add a toplevel LICENSE and NEWS file, for good measure
  refs #100911 Added 'make pkgbin' target to top level makefile to make a binary release
  • Loading branch information
David J. Kordsmeier committed May 4, 2013
2 parents dbd6857 + 6b2c3fb commit d208b4f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,31 @@ MD5: _always
SHA1: _always
grep -v $(IGNORELINKS) MANIFEST | xargs openssl dgst -sha1 > SHA1

pkgbin: default
echo $(VERSION) > version
# make sure VERSION= has been provided
grep '^[0-9]....' version
mkdir -p ccnx-pkg-$(VERSION)
mkdir -p ccnx-pkg-$(VERSION)/lib
mkdir -p ccnx-pkg-$(VERSION)/include
mkdir -p ccnx-pkg-$(VERSION)/bin
mkdir -p ccnx-pkg-$(VERSION)/man
mkdir -p ccnx-pkg-$(VERSION)/etc
mkdir -p ccnx-pkg-$(VERSION)/doc
$(MAKE) dist-docs
cp -r doc/ccode ccnx-pkg-$(VERSION)/doc
cp -r doc/javacode ccnx-pkg-$(VERSION)/doc
cp -r doc/manpages ccnx-pkg-$(VERSION)/doc
cp -r doc/technical ccnx-pkg-$(VERSION)/doc
cp -r doc/android ccnx-pkg-$(VERSION)/doc
cp doc/index.html ccnx-pkg-$(VERSION)/doc
cp LICENSE ccnx-pkg-$(VERSION)
cp NEWS ccnx-pkg-$(VERSION)
mv ccnx-pkg-$(VERSION)/doc/manpages/*.1 ccnx-pkg-$(VERSION)/man
$(MAKE) install INSTALL_BASE= DESTDIR=`pwd`/ccnx-pkg-$(VERSION)
tar cf ccnx-pkg-$(VERSION).tar ccnx-pkg-$(VERSION)
gzip -9 ccnx-pkg-$(VERSION).tar
ls -l ccnx-pkg-$(VERSION).tar.gz

_always:
.PHONY: _always

0 comments on commit d208b4f

Please sign in to comment.