<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,6 @@
 sources = GNUmakefile $(filter-out %~, $(wildcard *.make bin/* gub/*.py gub/*/*.py gub/*/*/*.py gub/*/*/*/*.py test-lily/*.py))
 
 ifeq ($(PLATFORMS),)
-# linux-ppc broken
 PLATFORMS=linux-x86 darwin-ppc darwin-x86 mingw linux-64 linux-ppc freebsd-x86 freebsd-64
 endif
 
@@ -26,9 +25,12 @@ help:
 $(MAKE_BASES):
 	$(MAKE) -f $@.make
 
-gub3% lily% cygwin%:
+lily% cygwin%:
 	$(MAKE) -f lilypond.make $@
 
+inkscape-%:
+	$(MAKE) -f inkscape.make $@
+
 test:
 	rm -rf target
 	make -f lilypond.make tools LOCAL_GUB_OPTIONS=-vvv</diff>
      <filename>GNUmakefile</filename>
    </modified>
    <modified>
      <diff>@@ -85,7 +85,7 @@ INSTALLING
 
 Examples
 
-  * Prepare a cross build environment
+  * Prepare a cross build environment for darwin-x86
 
       bin/gub darwin-x86::cross/gcc
 
@@ -100,7 +100,19 @@ Examples
 
       make lilypond
 
-    this leaves installers and documentation in uploads/
+    this leaves installers for GNU/Linux, MacOS-X and Windows,
+    and documentation in uploads/
+
+  * Build Inkscape for your platform
+
+      bin/gub inkscape
+      bin/gib inkscape --branch=inkscape=trunk inkscape
+
+  * Build all Inskape installers
+
+      make inkscape
+
+    this leaves installers for GNU/Linux and Windows in uploads/
 
   * Build OpenOffice for Windows:
 
@@ -168,12 +180,11 @@ Optional: Prepare build environment
 
 Build everything
 
-  make lilypond      # old gub2 style
-  make gub3-lilypond # new style
+  make lilypond
 
-this should leave an installer and documentation in
+this leaves installers and documentation in
 
-  uploads/PACKAGE-VERSION-RELEASE.linux-x86.shar
+  uploads/PACKAGE-VERSION-RELEASE.linux-x86.shar.sh
   uploads/PACKAGE-VERSION-RELEASE.documentation.tar.bz2
   uploads/webdoc/VERSION
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,10 @@
 #  LOCAL_GUB_OPTIONS - esp.: --verbose, --keep [--force-package]
 #  LOCAL_GUB_BUILDER_OPTIONS - deprecated
 
-.PHONY: bootstrap bootstrap-git compilers cross-compilers download download-tools tools tools-cross-tools
+.PHONY: bootstrap bootstrap-git
+.PHONY: compilers cross-compilers
+.PHONY: download
+.PHONY: download-tools tools tools-cross-tools
 
 ifeq ($(CWD),)
 $(error Must set CWD)
@@ -37,45 +40,9 @@ ifeq ($(BUILD_PLATFORM),)
 $(error Must define BUILD_PLATFORM)
 endif
 
-distccd: clean-distccd cross-compilers cross-distccd native-distccd tools-distcc
-
-clean-distccd:
-	rm -rf $(DISTCC_DIRS)
-	mkdir -p $(DISTCC_DIRS)
-
-tools-distcc:
-	chmod +x gub/distcc.py
-	rm -rf target/native-distcc/bin/ target/cross-distcc/bin/
-	mkdir -p target/cross-distcc/bin/ target/native-distcc/bin/
-	$(foreach binary,$(foreach p,$(PLATFORMS), $(filter-out %/python-config,$(wildcard target/$(p)/system/usr/cross/bin/*))), \
-		ln -s $(CWD)/gub/distcc.py target/cross-distcc/bin/$(notdir $(binary)) &amp;&amp; ) true
-	$(foreach binary, gcc g++, \
-		ln -s $(CWD)/gub/distcc.py target/native-distcc/bin/$(notdir $(binary)) &amp;&amp; ) true
-
 cross-compilers:
 	$(foreach p, $(PLATFORMS), $(call INVOKE_GUB,$(p)) $(call gcc_or_glibc,$(p)) &amp;&amp; ) true
 
-cross-distccd:
-	-$(if $(wildcard log/$@.pid),kill `cat log/$@.pid`, true)
-	rm -rf target/cross-distccd/bin/
-	mkdir -p target/cross-distccd/bin/
-	ln -s $(foreach p,$(PLATFORMS),$(filter-out %/python-config,$(wildcard $(CWD)/target/$(p)/system/usr/cross/bin/*))) target/cross-distccd/bin
-
-	$(SET_LOCAL_PATH) \
-		DISTCCD_PATH=$(CWD)/target/cross-distccd/bin \
-		distccd --daemon \
-		$(addprefix --allow ,$(GUB_DISTCC_ALLOW_HOSTS)) \
-		--port 3633 --pid-file $(CWD)/log/$@.pid \
-		--log-file $(CWD)/log/cross-distccd.log  --log-level info
-
-native-distccd:
-	-$(if $(wildcard log/$@.pid),kill `cat log/$@.pid`, true)
-	$(SET_LOCAL_PATH) \
-		distccd --daemon \
-		$(addprefix --allow ,$(GUB_DISTCC_ALLOW_HOSTS)) \
-		--port 3634 --pid-file $(CWD)/log/$@.pid \
-		--log-file $(CWD)/log/$@.log  --log-level info
-
 bootstrap: bootstrap-git download-tools tools cross-compilers tools-cross-tools download
 
 bootstrap-git:</diff>
      <filename>compilers.make</filename>
    </modified>
    <modified>
      <diff>@@ -45,3 +45,32 @@ BUILD=$(call INVOKE_GUB,$(1)) $(2)\
 
 BUILD_PLATFORM = $(shell $(PYTHON) bin/build-platform)
 OTHER_PLATFORMS=$(filter-out $(BUILD_PLATFORM), $(PLATFORMS))
+
+.PHONY: $(PLATFORMS)
+
+download:
+	$(call INVOKE_GUB,$(BUILD_PLATFORM)) --download-only $(BUILD_PACKAGE) $(OTHER_PLATFORMS:%=%::$(BUILD_PACKAGE))
+
+$(PLATFORMS):
+	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
+
+native:
+	$(MAKE) PLATFORMS=$(BUILD_PLATFORM) packages installers
+
+packages:
+	$(call INVOKE_GUB,$(BUILD_PLATFORM)) $(BUILD_PACKAGE) $(OTHER_PLATFORMS:%=%::$(BUILD_PACKAGE))
+
+installers: packages
+	$(foreach p,$(PLATFORMS),$(call INVOKE_INSTALLER_BUILDER,$(p)) $(INSTALL_PACKAGE) &amp;&amp; ) :
+
+platforms: $(PLATFORMS)
+
+debian-%:
+	$(call BUILD,$@,$(BUILD_PACKAGE))
+
+cygwin-%:
+	rm -f uploads/cygwin/setup.ini
+	$(call INVOKE_GUB,cygwin) --build-source $(@:cygwin-%=%)
+
+cygwin-%-installer:
+	$(CYGWIN_PACKAGER) $(@:cygwin-%-installer=%)</diff>
      <filename>gub.make</filename>
    </modified>
    <modified>
      <diff>@@ -10,9 +10,8 @@ INKSCAPE_REPO_URL=svn:https://inkscape.svn.sourceforge.net/svnroot/inkscape?modu
 #source = 'svn:https://inkscape.svn.sourceforge.net/svnroot/inkscape&amp;module=inkscape&amp;branch=trunk&amp;revision=20605'
 
 PLATFORMS=linux-x86
-# cocoa?
+# Cocoa/Carbon?
 # PLATFORMS+=darwin-ppc darwin-x86
-# nsis does not build with 64 bit compiler
 PLATFORMS+=mingw
 PLATFORMS+=linux-64
 PLATFORMS+=linux-ppc
@@ -31,16 +30,10 @@ INSTALL_PACKAGE = inkscape
 
 MAKE += -f lilypond.make
 
-gub3-packages:
-	$(call INVOKE_GUB,$(BUILD_PLATFORM)) $(BUILD_PACKAGE) $(OTHER_PLATFORMS:%=%::$(BUILD_PACKAGE))
+inkscape: packages
 
-gub3-installers: #gub3-packages
-	$(foreach p,$(PLATFORMS),$(call INVOKE_INSTALLER_BUILDER,$(p)) $(INSTALL_PACKAGE) &amp;&amp; ) :
-
-inkscape: gub3-packages
-
-inkscape-installer: gub3-installers
-inkscape-installers: gub3-installers
+inkscape-installer: installers
+inkscape-installers: installers
 
 print-success:
 	@echo installer: uploads/inkscape*$(BUILD_PLATFORM).sh</diff>
      <filename>inkscape.make</filename>
    </modified>
    <modified>
      <diff>@@ -1,19 +1,10 @@
 # -*-Makefile-*-
-.PHONY: all default distclean download TAGS
-.PHONY: cygwin debian debian-arm
-.PHONY: darwin-ppc darwin-x86 freebsd4-x86 freebsd6-x86 linux-x86 mingw
-.PHONY: bootstrap-download bootstrap
-.PHONY: unlocked-update-versions update-versions download print-success
-.PHONY: debian linux-ppc mingw mipsel clean realclean clean-distccd
-.PHONY: tools-distcc cross-compilers cross-distccd native-distccd
-.PHONY: bootstrap-git download-tools tools tools-cross-tools doc-clean
-.PHONY: unlocked-doc-clean
-.PHONY: unlocked-doc-export doc-export unlocked-dist-check dist-check
-
-.PHONY: cygwin-libtool cygwin-libtool-installer cygwin-fontconfig
-.PHONY: cygwin-freetype2 cygwin-freetype2-installer
-.PHONY: cygwin-fontconfig-installer cygwin-guile cygwin-guile-installer
-.PHONY: cygwin-lilypond cygwin-lilypond-installer upload-setup-ini darwin-ppc
+.PHONY: all default distclean rest print-success
+.PHONY: clean realclean
+.PHONY: test test-output test-clean
+.PHONY: update-versions unlocked-update-versions
+.PHONY: doc doc-clean doc-export unlocked-doc-clean unlocked-doc-export
+.PHONY: dist-check unlocked-dist-check
 
 default: all
 
@@ -21,29 +12,17 @@ LILYPOND_BRANCH=master
 # LILYPOND_BRANCH=stable/2.10
 LILYPOND_REPO_URL=git://git.sv.gnu.org/lilypond.git
 
-
-
 ALL_PLATFORMS=linux-x86 darwin-ppc darwin-x86 mingw linux-64 debian debian-arm freebsd-64 freebsd-x86 debian-mipsel linux-ppc
-PLATFORMS=linux-x86
+ALL_PLATFORMS += cygwin
 
-# odcctools do not build with 64 bit compiler
+PLATFORMS=linux-x86
 PLATFORMS+=darwin-ppc darwin-x86
-
-# nsis does not build with 64 bit compiler
 PLATFORMS+=mingw
-
 PLATFORMS+=linux-64
-
 PLATFORMS+=linux-ppc
-
 PLATFORMS+=freebsd-x86 freebsd-64
-
-## want cygwin to be the last, because it is not a core lilypond platform. 
-ALL_PLATFORMS += cygwin
-##PLATFORMS += cygwin
-
-# ugh?
-LILYPOND_REPODIR=downloads/lilypond
+# Put cygwin last, because it is not a core lilypond platform. 
+#PLATFORMS += cygwin
 
 ifeq ($(LILYPOND_BRANCH),stable/2.10)
 $(error backportme:\
@@ -85,14 +64,6 @@ SET_LOCAL_PATH=PATH=$(CWD)/target/local/root/usr/bin:$(PATH)
 
 LILYPOND_VERSIONS = uploads/lilypond.versions
 
-ifneq ($(BUILD_PLATFORM),linux-64)
-DOC_LIMITS=ulimit -m 256000 &amp;&amp; ulimit -d 256000 &amp;&amp; ulimit -v 384000
-else
-#Hmm?
-#DOC_LIMITS=ulimit -m 512000 &amp;&amp; ulimit -d 512000 &amp;&amp; ulimit -v 768000
-DOC_LIMITS=ulimit -m 512000 &amp;&amp; ulimit -d 512000 &amp;&amp; ulimit -v 1024000
-endif
-
 include compilers.make
 
 ################
@@ -112,8 +83,6 @@ endif
 update-versions:
 	$(PYTHON) gub/with-lock.py --skip $(LILYPOND_VERSIONS).lock $(MAKE) unlocked-update-versions
 
-download: download-cygwin
-
 download-cygwin:
 	$(MAKE) downloads/genini
 	rm -f target/*/status/lilypond*
@@ -122,46 +91,26 @@ download-cygwin:
 ## should be last, to incorporate changed VERSION file.
 	$(MAKE) update-versions
 
-all: native dist-check test-output test-export gub3-doc doc-export $(OTHER_PLATFORMS) print-success
-
-gub3-all: gub3-packages gub3-rest
-
-gub3all: gub3-all
-
-gub3-native:
-	$(MAKE) PLATFORMS=$(BUILD_PLATFORM) gub3-packages gub3-installers
-
-gub3-rest: gub3-installers gub3-test gub3-doc doc-export print-success
+all: packages rest
 
-gub3-packages:
-	$(call INVOKE_GUB,$(BUILD_PLATFORM)) $(BUILD_PACKAGE) $(OTHER_PLATFORMS:%=%::$(BUILD_PACKAGE))
+rest: installers test doc doc-export print-success
 
-gub3-installers: #gub3-packages
-	$(foreach p,$(PLATFORMS),$(call INVOKE_INSTALLER_BUILDER,$(p)) $(INSTALL_PACKAGE) &amp;&amp; ) :
+test: dist-check test-output test-export
 
-gub3-test: dist-check gub3-test test-export
+doc:
+	$(call INVOKE_GUB,--offline $(BUILD_PLATFORM)) lilypond-doc
 
-gub3-doc:
-	$(call INVOKE_GUB,$(BUILD_PLATFORM)) lilypond-doc
-
-gub3-test:
-	$(call INVOKE_GUB,$(BUILD_PLATFORM)) lilypond-test
-
-platforms: $(PLATFORMS)
+test-output:
+	$(call INVOKE_GUB,--offline $(BUILD_PLATFORM)) lilypond-test
 
 print-success:
-	python test-lily/upload.py --branch=$(LILYPOND_BRANCH) --url  $(LILYPOND_REPO_URL)
+	python test-lily/upload.py --branch=$(LILYPOND_BRANCH) --url $(LILYPOND_REPO_URL)
 	@echo &quot;&quot;
 	@echo &quot;To upload, run &quot;
 	@echo
 	@echo &quot;        	python test-lily/upload.py --branch=$(LILYPOND_BRANCH) --url $(LILYPOND_REPO_URL) --execute &quot;
 	@echo
 
-native: tools $(BUILD_PLATFORM)
-
-debian-arm:
-	$(call BUILD,$@,lilypond)
-
 docball = uploads/lilypond-$(DIST_VERSION)-$(DOC_BUILDNUMBER).documentation.tar.bz2
 webball = uploads/lilypond-$(DIST_VERSION)-$(DOC_BUILDNUMBER).webdoc.tar.bz2
 
@@ -170,61 +119,6 @@ $(docball):
 #easier to handle versions.db?
 	$(MAKE) doc
 
-# Regular cygwin stuff
-cygwin: cygwin-libtool cygwin-libtool-installer doc cygwin-lilypond cygwin-lilypond-installer
-
-cygwin-all: cygwin-libtool cygwin-libtool-installer cygwin-guile cygwin-guile-installer $(docball) cygwin-lilypond cygwin-lilypond-installer cygwin-fontconfig cygwin-fontconfig-installer
-
-cygwin-ghostscript:
-	rm -f uploads/cygwin/setup.ini
-	$(call INVOKE_GUB,cygwin) --build-source ghostscript
-
-cygwin-ghostscript-installer:
-	$(CYGWIN_PACKAGER) ghostscript
-
-cygwin-libtool:
-	rm -f uploads/cygwin/setup.ini
-	$(call INVOKE_GUB,cygwin) --build-source libtool
-
-cygwin-libtool-installer:
-	$(CYGWIN_PACKAGER) libtool
-
-cygwin-freetype2:
-	# when forcing a source build we remove everything,
-	# because freetype by default comes from cygwin as a binary
-	rm -f uploads/cygwin/setup.ini
-	rm -rf target/cygwin/
-	$(call INVOKE_GUP, cygwin) install cross/gcc
-#	$(call INVOKE_GUB,cygwin) freetype-config
-	$(call INVOKE_GUB,cygwin) --build-source freetype2
-
-cygwin-freetype2-installer:
-	$(CYGWIN_PACKAGER) freetype2
-
-cygwin-fontconfig:
-	# when forcing a source build we remove everything,
-	# because fontconfig by default comes from cygwin as a binary
-	rm -f uploads/cygwin/setup.ini
-	rm -rf target/cygwin/
-	$(call INVOKE_GUP, cygwin) install cross/gcc
-	$(call INVOKE_GUB,cygwin) --build-source fontconfig
-
-cygwin-fontconfig-installer:
-	$(CYGWIN_PACKAGER) fontconfig
-
-cygwin-guile:
-	$(call INVOKE_GUB,cygwin) --build-source libtool guile
-
-cygwin-guile-installer:
-	$(CYGWIN_PACKAGER) guile
-
-cygwin-lilypond:
-#	$(call INVOKE_GUB,cygwin) --build-source libtool guile fontconfig lilypond
-	$(call INVOKE_GUB,cygwin) --build-source libtool guile lilypond
-
-cygwin-lilypond-installer:
-	$(CYGWIN_PACKAGER) --branch=lilypond=$(LILYPOND_FLATTENED_BRANCH) lilypond
-
 upload-setup-ini:
 	cd uploads/cygwin &amp;&amp; ../../downloads/genini $$(find release -mindepth 1 -maxdepth 2 -type d) &gt; setup.ini
 
@@ -232,39 +126,6 @@ downloads/genini:
 	wget --output-document $@ 'http://cygwin.com/cgi-bin/cvsweb.cgi/~checkout~/genini/genini?rev=1.2&amp;content-type=text/plain&amp;cvsroot=cygwin-apps&amp;only_with_tag=HEAD'
 	chmod +x $@
 
-darwin-ppc:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
-darwin-x86:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
-debian:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
-freebsd4-x86:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
-freebsd6-x86:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
-freebsd-x86:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
-freebsd-64:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
-linux-x86:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
-linux-ppc:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
-linux-64:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
-mingw:
-	$(call BUILD,$@,$(BUILD_PACKAGE),$(INSTALL_PACKAGE))
-
 lily-clean:
 	rm -rf target/$(BUILD_PLATFORM)/*/lilypond-$(LILYPOND_FLATTENED_BRANCH)*
 
@@ -293,16 +154,18 @@ NATIVE_LILY_BUILD=$(NATIVE_TARGET_DIR)/build/lilypond-$(LILYPOND_FLATTENED_BRANC
 NATIVE_LILY_SRC=$(NATIVE_TARGET_DIR)/src/lilypond-$(LILYPOND_FLATTENED_BRANCH)
 # URG: try to guess at what repository will do.  should ask
 # repository.read_file(), I guess.
-NATIVE_BUILD_COMMITTISH=$(shell cat downloads/lilypond/refs/heads/$(LILYPOND_DIRRED_BRANCH))
+LILYPOND_REPO_DIR=downloads/lilypond/$(dir $(LILYPOND_DIRRED_BRANCH))
+NATIVE_BUILD_COMMITTISH=$(shell cat $(LILYPOND_REPO_DIR)/refs/heads/$(LILYPOND_DIRRED_BRANCH))
 
+print:
+	@echo LDB $(LILYPOND_DIRRED_BRANCH)
+	@echo LFB  $(LILYPOND_FLATTENED_BRANCH)
 
 DIST_VERSION=$(shell cat $(NATIVE_LILY_BUILD)/out/VERSION)
 DOC_BUILDNUMBER=$(shell $(PYTHON) gub/versiondb.py --platforms=$(PLATFORMS) --build-for=$(DIST_VERSION))
 
 SIGNATURE_FUNCTION=uploads/signatures/$(1).$(NATIVE_BUILD_COMMITTISH)
 
-doc: native doc-build
-
 doc-clean:
 	$(PYTHON) gub/with-lock.py --skip $(DOC_LOCK) $(MAKE) unlocked-doc-clean
 
@@ -355,7 +218,7 @@ unlocked-dist-check:
 		$(PYTHON) test-lily/dist-check.py\
 		--branch=$(LILYPOND_BRANCH) \
 		--url=$(LILYPOND_REPO_URL) \
-		--repository=$(LILYPOND_REPODIR) $(NATIVE_LILY_BUILD)
+		--repository=$(LILYPOND_REPO_DIR) $(NATIVE_LILY_BUILD)
 	cp $(NATIVE_LILY_BUILD)/out/lilypond-$(DIST_VERSION).tar.gz uploads
 
 dist-check:</diff>
      <filename>lilypond.make</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c98d300d3686a0cbfb6a5794f715d8fb0fd8930b</id>
    </parent>
  </parents>
  <author>
    <name>Jan Nieuwenhuizen</name>
    <email>janneke@gnu.org</email>
  </author>
  <url>http://github.com/janneke/gub/commit/e858e7c6d9e91e9d7fdead02f03c9a5d50b0c666</url>
  <id>e858e7c6d9e91e9d7fdead02f03c9a5d50b0c666</id>
  <committed-date>2009-02-09T01:51:22-08:00</committed-date>
  <authored-date>2009-02-09T01:51:22-08:00</authored-date>
  <message>Update makefiles for gub3.</message>
  <tree>6838931b223d8b13c94f9f45c93ec82df4058bc5</tree>
  <committer>
    <name>Jan Nieuwenhuizen</name>
    <email>janneke@gnu.org</email>
  </committer>
</commit>
