cmark

My personal build of CMark ✏️

Commit
79ba92a40d74af8f1c62678d7d7fbf45c69e7d2a
Parent
6c349ea389f852484b7c459bb8412720ef5ac7bf
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed some problems in 'make archive'.

Diffstat

1 file changed, 6 insertions, 5 deletions

Status File Name N° Changes Insertions Deletions
Modified Makefile 11 6 5
diff --git 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); \