Skip to content

Commit

Permalink
Makefile: only create MANDIR when manpage is installed
Browse files Browse the repository at this point in the history
When not installing the manpage there is no use in creating the directory

Fixes f352391 Makefile: check for trurl.1 before installing
  • Loading branch information
sertonix committed Jan 21, 2025
1 parent 6b52fa5 commit 3e8837f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ trurl.o: trurl.c version.h
install:
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(MANDIR)
(if test -f $(MANUAL); then \
$(INSTALL) -d $(DESTDIR)$(MANDIR); \
$(INSTALL) -m 0644 $(MANUAL) $(DESTDIR)$(MANDIR); \
fi)
(if test -f $(COMPLETION_FILES); then \
Expand Down

0 comments on commit 3e8837f

Please sign in to comment.