--- Makefile.in.orig	2014-07-29 00:27:10.000000000 +0900
+++ Makefile.in	2020-03-03 02:31:23.000000000 +0900
@@ -34,8 +34,11 @@
 exec_prefix =	@exec_prefix@
 
 BINDIR = $(exec_prefix)/bin
-LIBDIR = $(prefix)/lib
-MANDIR = $(prefix)/man/man1
+LIBDIR = $(prefix)/lib/a60
+MANDIR = $(prefix)/share/man/man1
+DOCDIR = $(prefix)/share/doc/a60
+INFDIR = $(prefix)/share/info
+EXADIR = $(prefix)/share/examples/a60/examples
 MANSUFF = 1
 
 ##
@@ -237,7 +240,20 @@
 	$(INSTALL_DATA) a60.man $(MANDIR)/$(PRG).$(MANSUFF)
 
 inst-lib:
+	-mkdir -p $(LIBDIR)
 	-$(INSTALL_DATA) a60-mkc.inc $(LIBDIR)
+	-mkdir -p $(DOCDIR)
+	-$(INSTALL_DATA) COPYING $(DOCDIR)
+	-$(INSTALL_DATA) README $(DOCDIR)
+	-$(INSTALL_DATA) a60.html $(DOCDIR)
+	-$(INSTALL_DATA) a60.pdf $(DOCDIR)
+	-$(INSTALL_DATA) RRA60.ps $(DOCDIR)
+	-$(INSTALL_DATA) ChangeLog $(DOCDIR)
+	-mkdir -p $(INFDIR)
+	-$(INSTALL_DATA) a60.info $(INFDIR)
+	-$(INSTALL_DATA) RRA60.info $(INFDIR)
+	-mkdir -p $(EXADIR)
+	-$(INSTALL_DATA) examples/* $(EXADIR)
 
 install:	inst-man inst-bin inst-lib
 
