diff --git a/Makefile b/Makefile index 016eb41..bdecbd7 100644 --- a/Makefile +++ b/Makefile @@ -95,12 +95,12 @@ clean: rm -r $(BUILDDIR) # Install libraries, binaries and documentation -install: $(BINARIES) $(LIBRARIES) $(SHAREDIR)/gray.1 +install: $(BINARIES) $(LIBRARIES) $(SHAREDIR)/doc $(SHAREDIR)/gray.1 install -Dm555 -t $(PREFIX)/bin $(BINDIR)/* install -Dm555 -t $(PREFIX)/lib $(LIBDIR)/* install -Dm644 -t $(PREFIX)/share/doc $(SHAREDIR)/doc/manual.* install -Dm644 -t $(PREFIX)/share/doc/res $(SHAREDIR)/doc/res/* - install -Dm644 -t $(PREFIX)/share/man/man1 $(SHAREDIR)/*.1 + install -Dm644 -t $(PREFIX)/share/man/man1 $(SHAREDIR)/gray.1 # GRAY binary $(GRAY): $(shell ./depend $(OBJDIR)/main.o) | $(BINDIR) @@ -115,7 +115,9 @@ $(LIBGRAY).a($(MODULES)): | $(LIBDIR) $(LIBGRAY).a: $(LIBGRAY).a($(MODULES)) # All documentation -docs: | $(SHAREDIR) +docs: $(SHAREDIR)/gray.1 $(SHAREDIR)/doc + +$(SHAREDIR)/doc: | $(SHAREDIR) +make -C doc cp -r doc/build/* $(SHAREDIR)