Browse code

Makefile.utils: add rule to create man page dir

- reported by Peter Dunkley

Daniel-Constantin Mierla authored on 25/10/2012 19:16:26
Showing 1 changed files
... ...
@@ -133,14 +133,17 @@ man:
133 133
 
134 134
 endif
135 135
 
136
+$(man_prefix)/$(man_dir)/man8:
137
+	mkdir -p $(man_prefix)/$(man_dir)/man8
138
+
136 139
 .PHONY: install-util-man
137 140
 #src-name man page install rules
138 141
 ifneq (,$(wildcard $(UTIL_SRC_NAME).8))
139 142
 install-util-man: $(man_prefix)/$(man_dir)/man8
140
-		sed -e "s#$(UTIL_SRC_NAME)#$(UTIL_NAME)#g" \
143
+	sed -e "s#$(UTIL_SRC_NAME)#$(UTIL_NAME)#g" \
141 144
 			-e "s#$(SRC_NAME)#$(MAIN_NAME)#g" \
142 145
 			< $(UTIL_SRC_NAME).8 > $(man_prefix)/$(man_dir)/man8/$(UTIL_NAME).8
143
-		chmod 644  $(man_prefix)/$(man_dir)/man8/$(UTIL_NAME).8
146
+	chmod 644  $(man_prefix)/$(man_dir)/man8/$(UTIL_NAME).8
144 147
 
145 148
 else
146 149