Skip to content

Commit

Permalink
Fix make man
Browse files Browse the repository at this point in the history
  • Loading branch information
LecrisUT committed Nov 26, 2024
1 parent 0ac4a47 commit d9c5839
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# Prepare variables
TMP = $(CURDIR)/tmp
VERSION = $(hatch version)
VERSION = $(shell hatch version)
PACKAGE = fmf-$(VERSION)
FILES = LICENSE README.rst \
Makefile fmf.spec pyproject.toml \
examples fmf tests

# Define special targets
all: docs packages
.PHONY: docs hooks
.PHONY: docs hooks tmp

# Temporary directory, include .fmf to prevent exploring tests there
tmp:
mkdir -p $(TMP)/.fmf
mkdir -p $(TMP)/$(PACKAGE)


# Run the test suite, optionally with coverage
Expand All @@ -27,7 +28,7 @@ coverage: tmp
# Build documentation, prepare man page
docs: man
hatch run docs:html
man:
man: tmp
cp docs/header.txt $(TMP)/man.rst
tail -n+7 README.rst >> $(TMP)/man.rst
rst2man $(TMP)/man.rst > $(TMP)/$(PACKAGE)/fmf.1
Expand Down

0 comments on commit d9c5839

Please sign in to comment.