Browse Source

Merge pull request #257 from trapexit/man

tweak man page creation
pull/258/head 2.12.3
Antonio SJ Musumeci 9 years ago
parent
commit
9b3c085cf3
  1. 8
      Makefile

8
Makefile

@ -134,7 +134,7 @@ obj/%.o: src/%.cpp
clean: rpm-clean clean: rpm-clean
$(RM) -rf obj $(RM) -rf obj
$(RM) -f src/version.hpp $(RM) -f src/version.hpp
$(RM) -f "$(TARGET)" "$(MANPAGE)" mount.mergerfs
$(RM) -f "$(TARGET)" mount.mergerfs
$(FIND) . -name "*~" -delete $(FIND) . -name "*~" -delete
distclean: clean distclean: clean
@ -150,7 +150,7 @@ install-mount.mergerfs: mount.mergerfs
$(CP) -a "$<" "$(INSTALLBINDIR)/$<" $(CP) -a "$<" "$(INSTALLBINDIR)/$<"
install-man: $(MANPAGE) install-man: $(MANPAGE)
$(INSTALL) -v -m 0644 -D "$(MANPAGE)" "$(INSTALLMAN1DIR)/$(MANPAGE)"
$(INSTALL) -v -m 0644 -D "man/$(MANPAGE)" "$(INSTALLMAN1DIR)/$(MANPAGE)"
install-strip: install-base install-strip: install-base
$(STRIP) "$(INSTALLBINDIR)/$(TARGET)" $(STRIP) "$(INSTALLBINDIR)/$(TARGET)"
@ -168,9 +168,7 @@ uninstall-man:
$(MANPAGE): README.md $(MANPAGE): README.md
ifneq (,$(PANDOC)) ifneq (,$(PANDOC))
$(PANDOC) -s -t man -o $(MANPAGE) README.md
else
$(CP) man/mergerfs.1 .
$(PANDOC) -s -t man -o "man/$(MANPAGE)" README.md
endif endif
man: $(MANPAGE) man: $(MANPAGE)

Loading…
Cancel
Save