From 79ba92a40d74af8f1c62678d7d7fbf45c69e7d2a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 4 Dec 2014 22:24:18 -0800 Subject: Fixed some problems in 'make archive'. --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 11e7734..0559277 100644 --- a/Makefile +++ b/Makefile @@ -48,19 +48,20 @@ mingw: cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchain-mingw32.cmake -DCMAKE_INSTALL_PREFIX=$(MINGW_INSTALLDIR) ;\ make && make install -archive: spec.html $(BUILDDIR) +archive: spec.html $(BUILDDIR) man/man1/cmark.1 man/man3/cmark.3 @rm -rf $(PKGDIR); \ mkdir -p $(PKGDIR)/$(SRCDIR)/html; \ - mkdir -p $(PKGDIR)/api_test; \ - srcfiles=`git ls-tree --full-tree -r HEAD --name-only $(SRCDIR) api_test`; \ + mkdir -p $(PKGDIR)/api_test $(PKGDIR)/man/man1 $(PKGDIR)/man/man3 ; \ + mkdir -p $(PKGDIR)/test ; \ + srcfiles=`git ls-tree --full-tree -r HEAD --name-only $(SRCDIR) test api_test`; \ for f in $$srcfiles; do cp -a $$f $(PKGDIR)/$$f; done; \ cp -a $(SRCDIR)/scanners.c $(PKGDIR)/$(SRCDIR)/; \ cp -a spec.html $(PKGDIR); \ + cp -a man/man1/cmark.1 $(PKGDIR)/man/man1;\ + cp -a man/man3/cmark.3 $(PKGDIR)/man/man3;\ cp CMakeLists.txt $(PKGDIR); \ perl -ne '$$p++ if /^### JavaScript/; print if (!$$p)' Makefile > $(PKGDIR)/Makefile; \ cp -a Makefile.nmake nmake.bat $(PKGDIR); \ - cp -r man $(PKGDIR)/; \ - cp -r test $(PKGDIR)/; \ cp -a README.md LICENSE spec.txt $(PKGDIR)/; \ tar czf $(TARBALL) $(PKGDIR); \ zip -q -r $(ZIPARCHIVE) $(PKGDIR); \ -- cgit v1.2.3