summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-26 09:48:33 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-26 09:49:12 -0400
commitcb8993568d68a17fad301d6f210ce14737447977 (patch)
treecbf55e0174177df7478cc5817115a16d543d0928
parent099d70f87208afc6bc0baf098c266c0d705f2453 (diff)
move README.html to build/
-rw-r--r--EndoForge/.gitignore2
-rw-r--r--EndoForge/Makefile9
2 files changed, 7 insertions, 4 deletions
diff --git a/EndoForge/.gitignore b/EndoForge/.gitignore
index daa30a3..378eac2 100644
--- a/EndoForge/.gitignore
+++ b/EndoForge/.gitignore
@@ -1 +1 @@
README.html build
diff --git a/EndoForge/Makefile b/EndoForge/Makefile
index a63fa31..4619d49 100644
--- a/EndoForge/Makefile
+++ b/EndoForge/Makefile
@@ -26,7 +26,8 @@ SOURCES = $(addprefix $(SRC), $(SOURCE_NAMES))
26 26
27.PHONY: install install-user install-user-config install-root shared doc test 27.PHONY: install install-user install-user-config install-root shared doc test
28 28
29doc: README.html 29doc: build/README.html $(SRC)/style.css
30 install -m0644 $(SRC)/style.css -t build
30 $(BROWSER) $< 31 $(BROWSER) $<
31 32
32shared: install 33shared: install
@@ -52,6 +53,7 @@ test:
52 make -C test 53 make -C test
53 54
54build/sshd_config: $(SRC)/sshd_config Makefile 55build/sshd_config: $(SRC)/sshd_config Makefile
56 install -d $(dir $@)
55 $(edit_sshd) < "$<" > "$@".tmp 57 $(edit_sshd) < "$<" > "$@".tmp
56 mv "$@".tmp "$@" 58 mv "$@".tmp "$@"
57 59
@@ -71,5 +73,6 @@ sed \
71 -e 's?PidFile=$$?&$(SSHD_PID_FILE)?' 73 -e 's?PidFile=$$?&$(SSHD_PID_FILE)?'
72endef 74endef
73 75
74README.html: README.md 76build/README.html: README.md
75 pandoc -s --css "$(SRC)"/style.css -t html $< -o $@ 77 install -d $(dir $@)
78 pandoc -s --css style.css -t html $< -o $@