public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Martin Koegler <mkoegler@auto.tuwien.ac.at>
To: binutils@sources.redhat.com
Subject: [PATCH] Add missing DESTDIR to dejagnu
Date: Fri, 27 May 2005 13:56:00 -0000	[thread overview]
Message-ID: <20050527114203.GA1457@ahab.auto.tuwien.ac.at> (raw)

sourceware.org contains in the src-tree an older version of dejagnu.
DESTDIR works for all files, except dejagnu.h, because it is not installed
with the means of automake.

The following patch make the makefile honor the DESTDIR setting also
for dejagnu.h. (Makefile.in needs to be regenerated)

2005-05-26  Martin Koegler  <mkoegler@auto.tuwien.ac.at>

        * Makefile.am: Honor $DESTDIR for dejagnu.h

Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/dejagnu/Makefile.am,v
retrieving revision 1.4
diff -u -r1.4 Makefile.am
--- Makefile.am	10 Nov 2003 09:14:46 -0000	1.4
+++ Makefile.am	26 May 2005 13:12:19 -0000
@@ -124,7 +124,7 @@
 uninstall-info:
 
 install-data-local:
-	$(mkinstalldirs) $(lib_dest) $(includedir)
+	$(mkinstalldirs) $(lib_dest) $(DESTDIR)$(includedir)
 	for f in $(lib_files); do \
 	  test ! -f "$$f" || $(INSTALL_DATA) $$f $(lib_dest); \
 	done
@@ -134,7 +134,7 @@
 	  test ! -f "$$f" || $(INSTALL_DATA) $$f $(baseboards_dest); \
 	done
 	#
-	$(INSTALL_DATA) $(srcdir)/dejagnu.h $(includedir); \
+	$(INSTALL_DATA) $(srcdir)/dejagnu.h $(DESTDIR)$(includedir); \
 	#
 	$(mkinstalldirs) $(config_dest)
 	for f in $(config_files); do \
@@ -155,7 +155,7 @@
 	for f in $(baseboards_files); do \
 	  test ! -f "$$f" || rm -f $(baseboards_dest)/`basename "$$f"`; \
 	done
-	rm -f $(includedir)/dejagnu.h;
+	rm -f $(DESTDIR)$(includedir)/dejagnu.h;
 
 site.exp: Makefile
 	@echo 'Making a new site.exp file...'


Is it possible to apply the patch to the CVS?

mfg Martin Kögler
e9925248@stud4.tuwien.ac.at

             reply	other threads:[~2005-05-27 11:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-27 13:56 Martin Koegler [this message]
2005-06-14 10:35 ` Nick Clifton

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=20050527114203.GA1457@ahab.auto.tuwien.ac.at \
    --to=mkoegler@auto.tuwien.ac.at \
    --cc=binutils@sources.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).