[sr-dev] git:master: Makefile.utils: add rule to create man page dir
Daniel-Constantin Mierla
miconda at gmail.com
Thu Oct 25 21:18:49 CEST 2012
Module: sip-router
Branch: master
Commit: a0b36a905afda1476085a645faf29bd534ed4949
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a0b36a905afda1476085a645faf29bd534ed4949
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Thu Oct 25 21:16:26 2012 +0200
Makefile.utils: add rule to create man page dir
- reported by Peter Dunkley
---
Makefile.utils | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Makefile.utils b/Makefile.utils
index 3198ea5..261c456 100644
--- a/Makefile.utils
+++ b/Makefile.utils
@@ -133,14 +133,17 @@ man:
endif
+$(man_prefix)/$(man_dir)/man8:
+ mkdir -p $(man_prefix)/$(man_dir)/man8
+
.PHONY: install-util-man
#src-name man page install rules
ifneq (,$(wildcard $(UTIL_SRC_NAME).8))
install-util-man: $(man_prefix)/$(man_dir)/man8
- sed -e "s#$(UTIL_SRC_NAME)#$(UTIL_NAME)#g" \
+ sed -e "s#$(UTIL_SRC_NAME)#$(UTIL_NAME)#g" \
-e "s#$(SRC_NAME)#$(MAIN_NAME)#g" \
< $(UTIL_SRC_NAME).8 > $(man_prefix)/$(man_dir)/man8/$(UTIL_NAME).8
- chmod 644 $(man_prefix)/$(man_dir)/man8/$(UTIL_NAME).8
+ chmod 644 $(man_prefix)/$(man_dir)/man8/$(UTIL_NAME).8
else
More information about the sr-dev
mailing list