mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: make clean for DocBook
Date: Fri, 13 Apr 2007 21:32:50 +0200	[thread overview]
Message-ID: <20070413193250.GA15361@uranus.ravnborg.org> (raw)
In-Reply-To: <20070413112316.44141d34.randy.dunlap@oracle.com>

> > 
> > 
> > And we will visit DocBook with mrproper - but not clean.
> > I have no stron opinion when to delete generated files in DocBook.
> 
> OK, that's fine, thanks for the info...
> but trying 'make mrproper' gives me:
> 
> 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
> 
> DocBook/man/ contains about 2000 files.
> Is there some way to have scripts/Makefile.clean just do
> 	rm -rf Documentation/DocBook/man/
> ?  or some other solution?

Something like this should do it.
This deletes the man/ directory entirely so
I have to do that when I check in the patch.

Let me know if this works for you.

	Sam

diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
index 867608a..960f402 100644
--- a/Documentation/DocBook/Makefile
+++ b/Documentation/DocBook/Makefile
@@ -152,6 +152,7 @@ quiet_cmd_db2man = MAN     $@
 	@(which xmlto > /dev/null 2>&1) || \
 	 (echo "*** You need to install xmlto ***"; \
 	  exit 1)
+	$(Q)mkdir -p $(obj)/man
 	$(call cmd,db2man)
 	@touch $@
 
@@ -212,11 +213,7 @@ clean-files := $(DOCBOOKS) \
 	$(patsubst %.xml, %.9,    $(DOCBOOKS)) \
 	$(C-procfs-example)
 
-clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS))
-
-#man put files in man subdir - traverse down
-subdir- := man/
-
+clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man
 
 # Declare the contents of the .PHONY variable as phony.  We keep that
 # information in a variable se we can use it in if_changed and friends.
diff --git a/Documentation/DocBook/man/Makefile b/Documentation/DocBook/man/Makefile
deleted file mode 100644
index 4fb7ea0..0000000
--- a/Documentation/DocBook/man/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-# Rules are put in Documentation/DocBook
-
-clean-files := *.9.gz *.sgml manpage.links manpage.refs


  reply	other threads:[~2007-04-13 19:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-13 16:06 Randy Dunlap
2007-04-13 16:41 ` Sam Ravnborg
2007-04-13 18:23   ` Randy Dunlap
2007-04-13 19:32     ` Sam Ravnborg [this message]
2007-04-13 21:03       ` Randy Dunlap
2007-04-13 21:10         ` Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070413193250.GA15361@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=randy.dunlap@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®