monotone-commits-diffs
[Top][All Lists]
Advanced

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

[Monotone-commits-diffs] net.venge.monotone.source-tree-cleanup: d54c8c


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.source-tree-cleanup: d54c8c17eeebbe7dd6bb30d4d10996db79de24f2
Date: Fri, 28 Jan 2011 12:09:11 GMT

revision:            d54c8c17eeebbe7dd6bb30d4d10996db79de24f2
date:                2011-01-28T11:56:05
author:              address@hidden
branch:              net.venge.monotone.source-tree-cleanup
changelog:
Clean up Makefile.am for dist, win32

* Makefile.am (doc_monotone_TEXINFOS): move copy-html-deps copy-pdf-deps out of 
this; they must be files in the 'dist' target. Also delete $(EPS_FIGURES); 
doesn't work on Win32, not needed anyway
  (EXTRA_DIST): renamed win32/README
  (doc/figures/%.ps): improve dependency chain, move copy-pdf-deps here
  (doc/html): move copy-html-deps here
  (dist-hook): add copy-html-deps copy-pdf-deps here


manifest:
format_version "1"

new_manifest [82acd2ae8a0f450ece4ab4a36cebe4b886128c44]

old_revision [3627249c28749684bf092c5f1eaa5fa6788c94b1]

patch "Makefile.am"
 from [cfc006c165b6e3eb214d4c176ce9217fafe69265]
   to [6d33b4f8c99a9898ee999417e5e6141d0b46f2a4]
============================================================
--- Makefile.am	cfc006c165b6e3eb214d4c176ce9217fafe69265
+++ Makefile.am	6d33b4f8c99a9898ee999417e5e6141d0b46f2a4
@@ -350,14 +350,7 @@ info_TEXINFOS = doc/monotone.texi
 man1_MANS = mtn.1
 info_TEXINFOS = doc/monotone.texi
 
-# It's quite absurd that to produce HTML files, or PDF files, from the texinfo
-# files, I need to have the texinfo file depend on the files that the HTML/PDF
-# files depend on.  Unfortunately, at the time of writing, automake doesn't
-# support adding dependencies to the different targets.
-# Adding phony targets as dependencies (copy-*) is quite a hack, but the only
-# way to have images copied to the build directory.
-doc_monotone_TEXINFOS = src/std_hooks.lua $(TEXI_FRAGMENTS) \
-	copy-html-deps copy-pdf-deps $(EPS_FIGURES)
+doc_monotone_TEXINFOS = src/std_hooks.lua $(TEXI_FRAGMENTS)
 
 EXTRA_DIST =								\
 	HACKING INSTALL INSTALL_windows_cygwin.txt			\
@@ -365,8 +358,9 @@ EXTRA_DIST =								\
 	util/audit-includes util/do-editor-vars.sh			\
 	$(wildcard $(srcdir)/m4/*.m4) doc/monotone.html doc/images	\
 	doc/texinfo.css src/schema.sql src/unix/README			\
-	src/util/mtnopt.in src/win32/README src/win32/monotone.iss.in	\
-	src/win32/modpath.iss src/win32/monotone.bmp src/win32/dlls.sh	\
+	src/util/mtnopt.in src/win32/README.txt				\
+	src/win32/monotone.iss.in src/win32/modpath.iss 		\
+	src/win32/monotone.bmp src/win32/dlls.sh			\
 									\
 	$(PDF_FIGURES) $(PNG_FIGURES) $(TEXI_FRAGMENTS)			\
 	doc/figures/monotone-logo.svg doc/figures/oo-figures.sxd	\
@@ -417,16 +411,17 @@ doc/figures/%.eps: doc/figures/%.ps
 doc/figures/%.eps: doc/figures/%.ps
 	ps2eps <$< >$@
 
-doc/figures/%.ps: $(srcdir)/doc/figures/%.pdf
-	mkdir -p $(top_builddir)/doc/figures
+doc/figures/%.ps: $(top_builddir)/doc/figures/%.pdf
 #	acroread -toPostScript -pairs $< $@
 	pdftops $< $@
 
+$(top_builddir)/doc/figures/%.pdf : $(srcdir)/doc/figures/%.pdf copy-pdf-deps
+
 # Stealing code from automake and adapting, we want a HTML file tree as well
 AM_MAKEINFODOCHTMLFLAGS= -I $(srcdir) \
 	--number-sections --css-ref=texinfo.css
 
-doc/html: doc/monotone.texi $(srcdir)/doc/version.texi $(doc_monotone_TEXINFOS) doc/html/$(am__dirstamp)
+doc/html: doc/monotone.texi $(srcdir)/doc/version.texi $(doc_monotone_TEXINFOS) copy-html-deps doc/html/$(am__dirstamp)
 	$(MKDIR_P) address@hidden
 	cp -r $(srcdir)/doc/figures address@hidden
 	cp -r $(srcdir)/doc/images address@hidden
@@ -512,8 +507,8 @@ po/$(PACKAGE).pot: $(POTFILES)
 	  $(XGETTEXT_PKG_OPTS) $(XGETTEXT_OPTS) \
 	  $(POTFILES)
 
-dist-hook: $(ALL_GMOFILES)
-	cp $^ $(distdir)/po
+dist-hook: $(ALL_GMOFILES) copy-html-deps copy-pdf-deps
+	cp $(ALL_GMOFILES) $(distdir)/po
 # also, kill off any backup files that got pulled in by one of the
 # recursive subdirectory includes in EXTRA_DIST
 # note use of slightly non-portable "-delete" action

reply via email to

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