* dmraid/man Makefile.in
@ 2010-05-30 17:11 zkabelac
0 siblings, 0 replies; 2+ messages in thread
From: zkabelac @ 2010-05-30 17:11 UTC (permalink / raw)
To: dm-cvs, dm-devel
CVSROOT: /cvs/dm
Module name: dmraid
Changes by: zkabelac@sourceware.org 2010-05-30 17:11:30
Modified files:
man : Makefile.in
Log message:
Simplify, keep all executed commands visible
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/man/Makefile.in.diff?cvsroot=dm&r1=1.4&r2=1.5
--- dmraid/man/Makefile.in 2010/05/28 08:40:52 1.4
+++ dmraid/man/Makefile.in 2010/05/30 17:11:30 1.5
@@ -14,20 +14,13 @@
include $(top_builddir)/make.tmpl
-.PHONY: install_dmraid_man remove_dmraid_man
+.PHONY: install_dmraid_man8
-%_install: %.8
- $(INSTALL_DATA) -D $< $(DESTDIR)$(MAN8DIR)/$(<F)
+install_dmraid_man8: $(MAN8)
+ $(INSTALL_DIR) $(DESTDIR)$(MAN8DIR)
+ $(INSTALL_DATA) $? $(DESTDIR)$(MAN8DIR)
-install_dmraid_man: $(MAN8:.8=_install)
+install: install_dmraid_man8
-install: install_dmraid_man
-
-remove_dmraid_man:
- @echo "Removing $(MAN8) in $(DESTDIR)$(MAN8DIR)"; \
- for f in $(MAN8); \
- do \
- $(RM) $(DESTDIR)$(MAN8DIR)/$$f; \
- done
-
-remove: remove_dmraid_man
+remove:
+ $(RM) $(addprefix $(DESTDIR)$(MAN8DIR)/,$(MAN8))
^ permalink raw reply [flat|nested] 2+ messages in thread
* dmraid/man Makefile.in
@ 2010-05-28 8:40 zkabelac
0 siblings, 0 replies; 2+ messages in thread
From: zkabelac @ 2010-05-28 8:40 UTC (permalink / raw)
To: dm-cvs, dm-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-30 17:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-30 17:11 dmraid/man Makefile.in zkabelac
-- strict thread matches above, loose matches on Subject: below --
2010-05-28 8:40 zkabelac
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.