groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Minor mom Makefile patch


From: Jörgen Grahn
Subject: [Groff] Minor mom Makefile patch
Date: Mon, 20 Jun 2005 11:36:32 +0200
User-agent: Mutt/1.5.9i

Hi,

(Originally I intended to whine about how the texinfo manual always seems to
require a more and more bleeding-edge texinfo, so that I never have a
suitable one preinstalled on my Debian system ... but I decided to be
positive instead.)

When I compile stuff, especially stuff pulled from CVS, I try to build in a
separate directory. "cd build && ../the_package/configure && make" and so on.
This sometimes works with groff, and sometimes it doesn't.

Right now (latest CVS) the only thing which seems to prevent that is the
contrib/mom install step.  Here is a patch which hopefully fixes that.

Please review it carefully if you intend to apply it. I'm not very good at
advanced, recursive make, and I'm not sure you want things like
$(notdir ...) in there; I assume that's a Gnu make-specific feature.

BR,
Jörgen

PS. I deliberately did not send this to mom's author, since it affects
groff's install process in general, not mom's features.


Index: contrib/mom/Makefile.sub
===================================================================
RCS file: /cvsroot/groff/groff/contrib/mom/Makefile.sub,v
retrieving revision 1.20
diff -u -r1.20 Makefile.sub
--- contrib/mom/Makefile.sub    16 Jun 2005 09:45:38 -0000      1.20
+++ contrib/mom/Makefile.sub    20 Jun 2005 10:22:14 -0000
@@ -110,13 +110,13 @@
          $(INSTALL_DATA) $(srcdir)/$$f $(htmldocdir)/$$f; \
        done
        -test -d $(exampledir) || $(mkinstalldirs) $(exampledir)
-       for f in $(EXAMPLEFILES); do \
+       for f in $(notdir $(EXAMPLEFILES)); do \
          rm -f $(exampledir)/$$f; \
-         $(INSTALL_DATA) $(srcdir)/$$f $(exampledir)/$$f; \
+         $(INSTALL_DATA) $(srcdir)/examples/$$f $(exampledir)/$$f; \
        done
-       for f in $(PROCESSEDEXAMPLEFILES); do \
+       for f in $(notdir $(PROCESSEDEXAMPLEFILES)); do \
          rm -f $(exampledir)/$$f; \
-         $(INSTALL_DATA) $$f $(exampledir)/$$f; \
+         $(INSTALL_DATA) examples/$$f $(exampledir)/$$f; \
        done
 
 uninstall_sub:



-- 
  // Jörgen Grahn       "Koka lopplummer, bada Ross, loppor borta."
\X/ <address@hidden>                                   -- Jonas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]