aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2018-11-14 18:28:20 +0100
committerTeddy Wing2018-11-14 18:28:20 +0100
commitadc887accaad125dec2cea86d132cedb961dae4d (patch)
treee11110f0c7a3a6c2062afdecb99fe9becf6da577 /Makefile
parentbc85e73d297d50bbcb77b77071654117f4a8820a (diff)
downloadDomeKey-adc887accaad125dec2cea86d132cedb961dae4d.tar.bz2
doc/dome-key.1.txt: Add "Launchd" section
Include the program's launchd plist in the man page.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cf204e2..ddc8fa7 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,8 @@ DEBUG_PRODUCT := build/Build/Products/Debug/DomeKey
RELEASE_PRODUCT := build/Build/Products/Release/DomeKey
ARCHIVE_PRODUCT := build/Release.xcarchive/Products/usr/local/bin/DomeKey
+LAUNCHD_PLIST := pkg/com.teddywing.dome-key.plist
+
# Build debug
@@ -89,8 +91,13 @@ run: build
.PHONY: doc
doc: doc/dome-key.1
-doc/dome-key.1: doc/dome-key.1.txt
+doc/dome-key.1: doc/dome-key.1.intermediate.txt
a2x --no-xmllint --format manpage $<
+ rm $<
+
+doc/dome-key.1.intermediate.txt: doc/dome-key.1.txt $(LAUNCHD_PLIST)
+ sed 's/^/ /' $(LAUNCHD_PLIST) | \
+ perl -0777 -pe '$$plist = <STDIN>; s/\$$\{PLIST}\n/$${plist}/' $< > $@
# Distribution