Skip to content

Commit 7785f5d

Browse files
committed
Add hyperlinks to Makefile output
Add hyperlinks in the Makefile output so you can easily ctrl-click the link to open the HTML/PDFs.
1 parent 4931695 commit 7785f5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,19 @@ $(BUILD_DIR)/%.pdf: $(SRC_DIR)/%.adoc $(ALL_SRCS)
139139
$(WORKDIR_SETUP)
140140
$(DOCKER_CMD) $(DOCKER_QUOTE) $(ASCIIDOCTOR_PDF) $(OPTIONS) $(REQUIRES) $< $(DOCKER_QUOTE)
141141
$(WORKDIR_TEARDOWN)
142+
@echo -e '\n Built \e]8;;file://$(abspath $@)\e\\$@\e]8;;\e\\\n'
142143

143144
$(BUILD_DIR)/%.html: $(SRC_DIR)/%.adoc $(ALL_SRCS)
144145
$(WORKDIR_SETUP)
145146
$(DOCKER_CMD) $(DOCKER_QUOTE) $(ASCIIDOCTOR_HTML) $(OPTIONS) $(REQUIRES) $< $(DOCKER_QUOTE)
146147
$(WORKDIR_TEARDOWN)
148+
@echo -e '\n Built \e]8;;file://$(abspath $@)\e\\$@\e]8;;\e\\\n'
147149

148150
$(BUILD_DIR)/%.epub: $(SRC_DIR)/%.adoc $(ALL_SRCS)
149151
$(WORKDIR_SETUP)
150152
$(DOCKER_CMD) $(DOCKER_QUOTE) $(ASCIIDOCTOR_EPUB) $(OPTIONS) $(REQUIRES) $< $(DOCKER_QUOTE)
151153
$(WORKDIR_TEARDOWN)
154+
@echo -e '\n Built \e]8;;file://$(abspath $@)\e\\$@\e]8;;\e\\\n'
152155

153156
build: submodule-check
154157
@echo "Checking if Docker is available..."

0 commit comments

Comments
 (0)