Makefile: fix gray.1 not being generated in all

This commit is contained in:
Michele Guerini Rocco 2022-05-02 10:51:16 +02:00
parent aea31018a9
commit d52fee084b
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -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)