Misc #262: Allow `make install` w/o docs

Allow `make install` w/o documentations, as `make MANPAGES= install`.
(#262)
This commit is contained in:
Richard Grenville 2015-01-25 10:46:22 +08:00
parent 23d1dd1c0e
commit 64b4fe2c72
1 changed files with 2 additions and 0 deletions

View File

@ -152,7 +152,9 @@ docs: $(MANPAGES) $(MANPAGES_HTML)
install: $(BINS) docs
@install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)" "$(DESTDIR)$(APPDIR)"
@install -m755 $(BINS) "$(DESTDIR)$(BINDIR)"/
ifneq "$(MANPAGES)" ""
@install -m644 $(MANPAGES) "$(DESTDIR)$(MANDIR)"/
endif
@install -m644 compton.desktop "$(DESTDIR)$(APPDIR)"/
ifneq "$(DOCDIR)" ""
@install -d "$(DESTDIR)$(DOCDIR)"