summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-09-09 21:28:10 -0700
committerKeith Packard <keithp@keithp.com>2010-09-09 21:28:10 -0700
commit2d5e48c5dc0e822fdf430f43804c1e5e79fdbf84 (patch)
tree2c4c2b7654bdd77c4e91af8037397a522c4fbf1f
parentdd2b77b2a516a055f29191dcdfeb727e637aae86 (diff)
Add --with-fat-dir configure option to publish finished stand-alone bits
--with-fat-dir specifies a directory to copy the finished linux/macosx/windows stand-alone ("fat") packages to. A sub-directory will be created under the specified directory based on the product version number and the files copied there. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--ao-tools/altosui/Makefile.am24
-rw-r--r--configure.ac8
2 files changed, 32 insertions, 0 deletions
diff --git a/ao-tools/altosui/Makefile.am b/ao-tools/altosui/Makefile.am
index 56e6d7ae..fa391889 100644
--- a/ao-tools/altosui/Makefile.am
+++ b/ao-tools/altosui/Makefile.am
@@ -102,6 +102,30 @@ clean-local:
fat: $(FATJAR) $(LINUX_DIST) $(MACOSX_DIST) $(WINDOWS_DIST)
+if FATINSTALL
+
+FATTARGET=$(FATDIR)/$(VERSION)
+
+LINUX_DIST_TARGET=$(FATTARGET)/$(LINUX_DIST)
+MACOSX_DIST_TARGET=$(FATTARGET)/$(MACOSX_DIST)
+WINDOWS_DIST_TARGET=$(FATTARGET)/$(WINDOWS_DIST)
+
+fat: $(LINUX_DIST_TARGET) $(MACOSX_DIST_TARGET) $(WINDOWS_DIST_TARGET)
+
+$(LINUX_DIST_TARGET): $(LINUX_DIST)
+ mkdir -p $(FATTARGET)
+ cp -p $< $@
+
+$(MACOSX_DIST_TARGET): $(MACOSX_DIST)
+ mkdir -p $(FATTARGET)
+ cp -p $< $@
+
+$(WINDOWS_DIST_TARGET): $(WINDOWS_DIST)
+ mkdir -p $(FATTARGET)
+ cp -p $< $@
+
+endif
+
altosuidir=$(datadir)/java
install-altosuiJAVA: altosui.jar
diff --git a/configure.ac b/configure.ac
index 61c03b18..4bf8f7fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,6 +58,14 @@ fi
AC_SUBST(JVM_INCLUDE)
+AC_ARG_WITH(fat-dir, AS_HELP_STRING([--with-fat-dir=PATH],
+ [Set the directory to install the 'fat' distribution files to (defaults to not installing)]),
+ [FATDIR=$withval], [FATDIR=none])
+
+AM_CONDITIONAL(FATINSTALL, [test "x$FATDIR" != "xnone"])
+
+AC_SUBST(FATDIR)
+
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S