--- Makefile.in.orig	2020-08-24 05:45:49 UTC
+++ Makefile.in
@@ -57,13 +57,13 @@ install.man:
 	$(INSTALL_DIR) $(DESTDIR)$(MANDIR)/man3
 	$(INSTALL_DATA) $(MAN3PAGES) $(DESTDIR)$(MANDIR)/man3
 	for x in mkd_line mkd_generateline; do \
-	    ( echo '.\"' ; echo ".so man3/mkd-line.3" ) > $(DESTDIR)$(MANDIR)/man3/$$x.3;\
+	    ln -sf mkd-line.3 $(DESTDIR)$(MANDIR)/man3/$$x.3; \
 	done
 	for x in mkd_in mkd_string; do \
-	    ( echo '.\"' ; echo ".so man3/markdown.3" ) > $(DESTDIR)$(MANDIR)/man3/$$x.3;\
+	    ln -sf markdown.3 $(DESTDIR)$(MANDIR)/man3/$$x.3; \
 	done
 	for x in mkd_compile mkd_css mkd_generatecss mkd_generatehtml mkd_cleanup mkd_doc_title mkd_doc_author mkd_doc_date; do \
-	    ( echo '.\"' ; echo ".so man3/mkd-functions.3" ) > $(DESTDIR)$(MANDIR)/man3/$$x.3; \
+	    ln -sf mkd-functions.3 $(DESTDIR)$(MANDIR)/man3/$$x.3; \
 	done
 	$(INSTALL_DIR) $(DESTDIR)$(MANDIR)/man7
 	$(INSTALL_DATA) markdown.7 mkd-extensions.7 $(DESTDIR)$(MANDIR)/man7
@@ -128,6 +128,7 @@ main.o: main.c mkdio.h config.h
 
 $(MKDLIB): $(OBJS)
 	./librarian.sh make $(MKDLIB) VERSION $(OBJS)
+	ar crv $(MKDLIB).a $(OBJS)
 
 verify: echo tools/checkbits.sh
 	@./echo -n "headers ... "; tools/checkbits.sh && echo "GOOD"
