Skip to content

Commit

Permalink
'make doc' shows the generated man page
Browse files Browse the repository at this point in the history
  • Loading branch information
fdegros committed Aug 11, 2022
1 parent cedfff7 commit 45edd02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ INSTALL_DATA = $(INSTALL) -m 644
all: $(DEST)

doc: $(MAN)
man -l $(MAN)

$(DEST): $(OBJECTS) $(LIB)
$(CXX) $(OBJECTS) $(LDFLAGS) $(LIBS) -o $@
Expand All @@ -64,7 +65,7 @@ all-clean:
$(MAN): README.md
pandoc $< -s -t man -o $@

install: all doc
install: $(DEST) $(MAN)
$(INSTALL_PROGRAM) "$(DEST)" "$(DESTDIR)$(bindir)/$(DEST)"
$(INSTALL_DATA) $(MAN) "$(DESTDIR)$(MANDIR)/$(MAN)"

Expand Down

0 comments on commit 45edd02

Please sign in to comment.