All of lore.kernel.org
 help / color / mirror / Atom feed
From: zkabelac@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: dmraid/man Makefile.in
Date: 28 May 2010 08:40:53 -0000	[thread overview]
Message-ID: <20100528084053.11661.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/dm
Module name:	dmraid
Changes by:	zkabelac@sourceware.org	2010-05-28 08:40:52

Modified files:
	man            : Makefile.in 

Log message:
	Fix usage of top_builddir
	Install man pages properly from top_srcdir
	Use vpath instead of VPATH

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/man/Makefile.in.diff?cvsroot=dm&r1=1.3&r2=1.4

--- dmraid/man/Makefile.in	2010/03/16 16:02:16	1.3
+++ dmraid/man/Makefile.in	2010/05/28 08:40:52	1.4
@@ -1,30 +1,27 @@
 #
-# Copyright (C) 2004-2005  Heinz Mauelshagen, Red Hat GmbH. All rights reserved.
+# Copyright (C) 2004-2010  Heinz Mauelshagen, Red Hat GmbH. All rights reserved.
 #
 # See file LICENSE at the top of this source tree for license information.
 #
 
 srcdir = @srcdir@
 top_srcdir = @top_srcdir@
-VPATH = @srcdir@
+top_builddir = @top_builddir@
+vpath %.8 $(srcdir)
 
 MAN8=dmraid.8 dmevent_tool.8
 MAN8DIR=${mandir}/man8
 
-include $(top_srcdir)/make.tmpl
+include $(top_builddir)/make.tmpl
 
-.PHONY:	install_dmraid_man remove_dmraid_man
+.PHONY: install_dmraid_man remove_dmraid_man
 
-install_dmraid_man:
-	@echo "Installing $(MAN8) in $(DESTDIR)$(MAN8DIR)"; \
-	mkdir -p $(DESTDIR)$(MAN8DIR); \
-	for f in $(MAN8); \
-	do \
-	   $(RM) $(DESTDIR)$(MAN8DIR)/$$f; \
-	   @INSTALL@ -D -m 444 $$f $(DESTDIR)$(MAN8DIR)/$$f; \
-	done
+%_install: %.8
+	$(INSTALL_DATA) -D $< $(DESTDIR)$(MAN8DIR)/$(<F)
+
+install_dmraid_man: $(MAN8:.8=_install)
 
-install:	install_dmraid_man
+install: install_dmraid_man
 
 remove_dmraid_man:
 	@echo "Removing $(MAN8) in $(DESTDIR)$(MAN8DIR)"; \
@@ -33,4 +30,4 @@
 	   $(RM) $(DESTDIR)$(MAN8DIR)/$$f; \
 	done
 
-remove:	remove_dmraid_man
+remove: remove_dmraid_man

             reply	other threads:[~2010-05-28  8:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-28  8:40 zkabelac [this message]
2010-05-30 17:11 dmraid/man Makefile.in zkabelac

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=20100528084053.11661.qmail@sourceware.org \
    --to=zkabelac@sourceware.org \
    --cc=dm-cvs@sourceware.org \
    --cc=dm-devel@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.