diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-04 22:24:18 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-04 22:24:18 -0800 |
commit | 79ba92a40d74af8f1c62678d7d7fbf45c69e7d2a (patch) | |
tree | e565baeb51b17ac0b79e7f2788555ad00a4d1d04 /Makefile | |
parent | 6c349ea389f852484b7c459bb8412720ef5ac7bf (diff) |
Fixed some problems in 'make archive'.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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); \ |