diff options
author | Teddy Wing | 2018-11-14 18:28:20 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-14 18:28:20 +0100 |
commit | adc887accaad125dec2cea86d132cedb961dae4d (patch) | |
tree | e11110f0c7a3a6c2062afdecb99fe9becf6da577 /Makefile | |
parent | bc85e73d297d50bbcb77b77071654117f4a8820a (diff) | |
download | DomeKey-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-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |