Here's my take at flood install target. Since I'm total automake newbie,
you might want to take a closer look at this. It does what is desired --
it copies flood to $PREFIX/bin. There's no special place for examples
and DESIGN, CHANGES, CONFIG files in therms of autoconf, so they are
left without instalation. Such files are often found in
/usr/share/doc/$package_name/, but it is entirelly up to binary (deb,
rpm) package maintainer.

This patch has one problem. Install dir is cluttered with lotsa apr/apu
stuff (*-config scripts, includes, libraries) -- even when flood is
built with --disable-shared. I've had enough of autoconf magic for
today, so I'll tackle this tommorow (unless somebody else beats me
first).

After reading Greg Stein post at [EMAIL PROTECTED], I think we schould roll
flood-1.1 instead of flood-1.0, as Aaron suggested. FLOOD_1_0 lies in
repo far to long to bump revisions for free. Some people might be pissed
off, that flood 1.0 from tarball behaves a bit different that one
fetched from CVS some time ago. Sorry for beeing a little bit too rush
about that flood-1.0 tarball. I just imagined flood-1.0 would be really
nice and exciting release (like Apache 2.0 GA), but since it's too late
-- let's T&R flood-1.1 :)

regards
-- 
Jacek Prucia
7bulls.com S.A.
http://www.7bulls.com/


diff -urN flood.orig/build/rules.mk.in flood/build/rules.mk.in
--- flood.orig/build/rules.mk.in        2002-01-17 02:06:27.000000000 +0100
+++ flood/build/rules.mk.in     2002-09-10 18:37:56.000000000 +0200
@@ -89,8 +89,8 @@
 
 # Helper programs
 
-MKINSTALLDIRS = $(abs_srcdir)/build/mkdir.sh
-INSTALL = $(LIBTOOL) --mode=install $(abs_srcdir)/build/install.sh -c
+MKINSTALLDIRS = $(top_srcdir)/build/mkdir.sh
+INSTALL = $(LIBTOOL) --mode=install $(top_srcdir)/build/install.sh -c
 INSTALL_DATA = $(INSTALL) -m 644
 INSTALL_PROGRAM = $(INSTALL) -m 755 $(INSTALL_PROG_FLAGS)
 
@@ -197,9 +197,9 @@
 
 local-install: $(TARGETS) $(SHARED_TARGETS) $(INSTALL_TARGETS)
        @if test -n '$(PROGRAMS)'; then \
-           test -d $(sbindir) || $(MKINSTALLDIRS) $(sbindir); \
+           test -d $(bindir) || $(MKINSTALLDIRS) $(bindir); \
            list='$(PROGRAMS)'; for i in $$list; do \
-               $(INSTALL_PROGRAM) $$i $(sbindir); \
+               $(INSTALL_PROGRAM) $$i $(bindir); \
            done; \
        fi
 
diff -urN flood.orig/configure.in flood/configure.in
--- flood.orig/configure.in     2002-07-22 07:48:02.000000000 +0200
+++ flood/configure.in  2002-09-10 18:35:18.000000000 +0200
@@ -5,7 +5,7 @@
 AC_CONFIG_AUX_DIR(build)
 
 dnl Override the default prefix with /pkg/flood-0.1
-AC_PREFIX_DEFAULT(/pkg/flood-0.1)
+AC_PREFIX_DEFAULT(/usr/local)
 
 dnl m4 Macros from APR
 sinclude(build/apr_common.m4)
diff -urN flood.orig/Makefile.in flood/Makefile.in
--- flood.orig/Makefile.in      2002-07-22 07:48:02.000000000 +0200
+++ flood/Makefile.in   2002-09-10 18:33:06.000000000 +0200
@@ -5,6 +5,10 @@
 builddir     = $(shell pwd)
 VPATH        = @srcdir@
 
+prefix       = @prefix@
+exec_prefix  = @exec_prefix@
+bindir       = @bindir@
+
 targets = flood
 
 PROGRAMS = flood

Reply via email to