lindenb / makefile2graph

Creates a graph of dependencies from GNU-Make; Output is a graphiz-dot file or a Gexf-XML file.
MIT License
616 stars 62 forks source link

'make install' installs docs in incorrect directory #25

Open levitte opened 4 years ago

levitte commented 4 years ago

Hi,

I just noticed that make install installs extra documentation in /usr/local/share/makefile2graph when I would have expected it in /usr/local/share/doc/makefile2graph:

install LICENSE README.md screenshot.png /usr/local/share/makefile2graph

I assume that is was a simple mistake, resolved like this:

diff --git a/Makefile b/Makefile
index 1e1fb81..33394aa 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ prefix = /usr/local
 bindir = $(prefix)/bin
 sharedir = $(prefix)/share
 docdir = $(sharedir)/doc
-pkgdocdir = $(sharedir)/makefile2graph
+pkgdocdir = $(docdir)/makefile2graph
 mandir = $(sharedir)/man
 man1dir = $(mandir)/man1