aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@neptun.ravnborg.org>2007-04-13 17:07:00 -0400
committerSam Ravnborg <sam@ravnborg.org>2007-05-02 14:58:10 -0400
commite711db3edfe7c0e32b6430e7d041905f856aa79a (patch)
treecfdc462ea2f4769dd3119b8b80687e01dccc81bb /Documentation/DocBook/Makefile
parent145c90475f809060c8601828f14543191e06a0bb (diff)
kbuild: fix make mrproper for Documentation/DocBook/man
"make mandocs" generate > 2000 files in Documentation/DocBook/man and this caused kbuild to barf out during make mrproper like this: make -f scripts/Makefile.clean obj=Documentation/DocBook make -f scripts/Makefile.clean obj=Documentation/DocBook/man/ make[2]: execvp: /bin/sh: Argument list too long make[2]: *** [__clean] Error 127 make[1]: *** [Documentation/DocBook/man/] Error 2 make: *** [_mrproper_Documentation/DocBook] Error 2 The man directory were solely used for output so the fix is to remove it entirely during the make mrproper process. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Diffstat (limited to 'Documentation/DocBook/Makefile')
-rw-r--r--Documentation/DocBook/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
index 867608ab3ca..960f4025ee8 100644
--- a/Documentation/DocBook/Makefile
+++ b/Documentation/DocBook/Makefile
@@ -152,6 +152,7 @@ quiet_cmd_db2man = MAN $@
152 @(which xmlto > /dev/null 2>&1) || \ 152 @(which xmlto > /dev/null 2>&1) || \
153 (echo "*** You need to install xmlto ***"; \ 153 (echo "*** You need to install xmlto ***"; \
154 exit 1) 154 exit 1)
155 $(Q)mkdir -p $(obj)/man
155 $(call cmd,db2man) 156 $(call cmd,db2man)
156 @touch $@ 157 @touch $@
157 158
@@ -212,11 +213,7 @@ clean-files := $(DOCBOOKS) \
212 $(patsubst %.xml, %.9, $(DOCBOOKS)) \ 213 $(patsubst %.xml, %.9, $(DOCBOOKS)) \
213 $(C-procfs-example) 214 $(C-procfs-example)
214 215
215clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) 216clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man
216
217#man put files in man subdir - traverse down
218subdir- := man/
219
220 217
221# Declare the contents of the .PHONY variable as phony. We keep that 218# Declare the contents of the .PHONY variable as phony. We keep that
222# information in a variable se we can use it in if_changed and friends. 219# information in a variable se we can use it in if_changed and friends.