summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-12 08:39:42 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-12 08:39:42 -0800
commitafffab6f9ec22de7bad1cdda99c0cc187cd6a826 (patch)
tree84b2085838be61b8648140dd14b72028ffc7aa9a
parent429a43768ee416ed5fed905efe8deca79e155fec (diff)
Improved tarball target.
Include spec.html. Delete temp directory after creating tarball.
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b3eb921..1297fc8 100644
--- a/Makefile
+++ b/Makefile
@@ -29,15 +29,17 @@ debug:
cmake .. -DCMAKE_BUILD_TYPE=Debug; \
cmake --build .
-tarball:
+tarball: spec.html
rm -rf $(PKGDIR); \
mkdir -p $(PKGDIR)/man/man1; \
cp -r src $(PKGDIR)/; \
+ cp spec.html $(PKGDIR); \
cp CMakeLists.txt $(PKGDIR); \
perl -ne '$$p++ if /^### JavaScript/; print if (!$$p)' Makefile > $(PKGDIR)/Makefile; \
cp man/man1/cmark.1 $(PKGDIR)/man/man1/; \
cp README.md LICENSE spec.txt runtests.pl $(PKGDIR)/; \
- tar cvzf cmark-$(SPECVERSION).tar.gz $(PKGDIR)
+ tar czf cmark-$(SPECVERSION).tar.gz $(PKGDIR); \
+ rm -rf $(PKGDIR)
clean:
rm -rf $(BUILDDIR)