public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Add missing DESTDIR to dejagnu
@ 2005-05-27 13:56 Martin Koegler
  2005-06-14 10:35 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Koegler @ 2005-05-27 13:56 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add missing DESTDIR to dejagnu
  2005-05-27 13:56 [PATCH] Add missing DESTDIR to dejagnu Martin Koegler
@ 2005-06-14 10:35 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2005-06-14 10:35 UTC (permalink / raw)
  To: Martin Koegler; +Cc: binutils

Hi Martin,

> 2005-05-26  Martin Koegler  <mkoegler@auto.tuwien.ac.at>
> 
>         * Makefile.am: Honor $DESTDIR for dejagnu.h

Approved and applied.  (Plus I did regenerate Makefile.in and check this 
in as well).

Cheers
   Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-14 10:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-27 13:56 [PATCH] Add missing DESTDIR to dejagnu Martin Koegler
2005-06-14 10:35 ` Nick Clifton

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).