Re: patch for building outside of srcdir

Mike Castle <[email protected]>
Newsgroups gmane.lisp.librep
Message-ID <[email protected]>
On Sat, Dec 06, 2003 at 10:25:24AM -0800, John Harper wrote:
> thanks, I applied the src/Makefile.in patch. But I don't think the 
> rules.mk part of the patch is correct, won't it cause the source 
> directory to be modified? (by creating the rules.mk file in it)

Hmmm.... You're right.

I blindly went with top_srcdir because that is what is used in Makedefs.in.

However, can't simply change everything to use $(top_builddir)/rules.mk
because it turns out that, rather than including Makedefs, it gets
prepended to Makefile.  So top_builddir isn't defined before thas use in
Makedefs.

Trickly problem.

Ugly ass makefile.

I'm not sure how to solve it.  I'll think on it more, but really don't have
any good ideas at this point.

mrc

> 	John
> 
> On Dec 2, 2003, at 1:19 PM, Mike Castle wrote:
> >diff -ru librep-0.17.orig/Makefile.in librep-0.17/Makefile.in
> >--- librep-0.17.orig/Makefile.in	2003-09-03 22:57:43.000000000 -0700
> >+++ librep-0.17/Makefile.in	2003-12-01 17:29:46.000000000 -0800
> >@@ -36,7 +36,7 @@
> > 	  '$(repdir)' '$(replispdir)' '$(repexecdir)' \
> > 	  '$(repdocfile)' '$(repcommonexecdir)' >$@
> >
> >-rules.mk : rules.mk.sh config.status
> >+$(top_srcdir)/rules.mk : $(top_srcdir)/rules.mk.sh config.status
> > 	$(SHELL) $< '$(repdir)' '$(repcommonexecdir)' '$(repdocfile)' >$@
> >
> > check :
> >@@ -51,7 +51,7 @@
> > 	$(INSTALL_DATA) doc-strings $(DESTDIR)$(repexecdir)
> > 	$(INSTALL_SCRIPT) emulate-gnu-tar $(DESTDIR)$(repexecdir)
> > 	$(INSTALL_SCRIPT) libtool $(DESTDIR)$(repcommonexecdir)
> >-	$(INSTALL_DATA) rules.mk $(DESTDIR)$(repcommonexecdir)
> >+	$(INSTALL_DATA) $(top_srcdir)/rules.mk $(DESTDIR)$(repcommonexecdir)
> > 	$(INSTALL_SCRIPT) install-aliases $(DESTDIR)$(repcommonexecdir)
> > 	$(INSTALL_DATA) rep-debugger.el $(DESTDIR)$(emacssitelispdir)

-- 
     Mike Castle      [email protected]      www.netcom.com/~dalgoda/
    We are all of us living in the shadow of Manhattan.  -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.