Skip to content

Commit

Permalink
Makefile: fix doc target
Browse files Browse the repository at this point in the history
meson generated didn't generate the `doc` target because it appended
the output directory to the target name. This commit sets the output
name to `.`, so that the target is named `doc` instead of `doc/html`.

fixes #75.
  • Loading branch information
Gottox committed Aug 28, 2023
1 parent a3b5154 commit 5c29451
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
######################################################################

NINJA_TARGETS := test benchmark install dist scan-build clang-format uninstall \
all clang-tidy doc coverage-html
all clang-tidy doc/html coverage-html

ifeq ($(32BIT),1)
ARCH = i386
Expand Down Expand Up @@ -65,6 +65,10 @@ endif
$(NINJA_TARGETS): $(BUILD_DIR)
$W $(NINJA) -C $< $@

.PHONY: doc

doc: doc/html

$(BUILD_DIR): meson.build Makefile
[ "$(PODMAN)" ] && meson wrap update-db || true
[ -d "$@" ] && rm -rf "$@" || true
Expand Down

0 comments on commit 5c29451

Please sign in to comment.