Add `docdir` and install README.md to it.

[yarrick@kryo.se: Fixed duplicate share/ in path]
This commit is contained in:
Doron Behar 2018-02-27 17:43:53 +02:00 committed by Erik Ekman
parent 8379384d37
commit ff91879ae1
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@ prefix?=/usr/local
sbindir=$(prefix)/sbin sbindir=$(prefix)/sbin
datadir=$(prefix)/share datadir=$(prefix)/share
mandir=$(datadir)/man mandir=$(datadir)/man
docdir=$(datadir)/doc
DESTDIR= DESTDIR=
@ -28,6 +29,9 @@ install: all
$(MKDIR) $(MKDIR_FLAGS) $(DESTDIR)$(mandir)/man8 $(MKDIR) $(MKDIR_FLAGS) $(DESTDIR)$(mandir)/man8
$(INSTALL) $(INSTALL_FLAGS) man/iodine.8 $(DESTDIR)$(mandir)/man8/iodine.8 $(INSTALL) $(INSTALL_FLAGS) man/iodine.8 $(DESTDIR)$(mandir)/man8/iodine.8
chmod 644 $(DESTDIR)$(mandir)/man8/iodine.8 chmod 644 $(DESTDIR)$(mandir)/man8/iodine.8
$(MKDIR) $(MKDIR_FLAGS) $(DESTDIR)$(docdir)/iodine
$(INSTALL) $(INSTALL_FLAGS) README.md $(DESTDIR)$(docdir)/iodine/README.md
chmod 644 $(DESTDIR)$(docdir)/iodine/README.md
uninstall: uninstall:
$(RM) $(RM_FLAGS) $(DESTDIR)$(sbindir)/iodine $(RM) $(RM_FLAGS) $(DESTDIR)$(sbindir)/iodine