aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2018-11-22 19:16:54 +0100
committerTeddy Wing2018-11-22 19:16:54 +0100
commit6efa822790eb6857820787594530fe8a05093d6a (patch)
treeab68ad47b513ba577f20dcc7ea89d815eb975d07 /Makefile
parent7844357b26124234127c4315bf9b9e8054a11c80 (diff)
downloadDomeKey-6efa822790eb6857820787594530fe8a05093d6a.tar.bz2
doc/dome-key.1.txt: Add full license text
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index df21648..746e801 100644
--- a/Makefile
+++ b/Makefile
@@ -99,9 +99,12 @@ doc-clean: doc/dome-key.1.intermediate.txt
doc/dome-key.1: doc/dome-key.1.intermediate.txt
a2x --no-xmllint --format manpage $<
-doc/dome-key.1.intermediate.txt: doc/dome-key.1.txt $(LAUNCHD_PLIST)
+doc/dome-key.1.intermediate.txt: doc/dome-key.1.txt $(LAUNCHD_PLIST) LICENSE
sed 's/^/ /' $(LAUNCHD_PLIST) | \
- perl -0777 -pe '$$plist = <STDIN>; s/\$$\{PLIST}\n/$${plist}/' $< > $@
+ perl -0777 -pe '$$plist = <STDIN>; s/\$$\{PLIST}\n/$${plist}/' $< > "$@.0"
+ perl -0777 -pe '$$license = <STDIN>; s/\$$\{LICENSE}\n/$${license}/' \
+ < LICENSE "$@.0" > $@
+ rm "$@.0"
doc/dome-key-mappings.7: doc/dome-key-mappings.7.txt
a2x --no-xmllint --format manpage $<