1997-04-02 03:19:30 +08:00
|
|
|
## Process Makefile.am with automake to create Makefile.in. -*-Makefile-*-
|
1997-04-02 02:29:23 +08:00
|
|
|
## Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
|
|
|
AUTOMAKE_OPTIONS = gnits
|
1997-04-02 02:49:25 +08:00
|
|
|
SUBDIRS = doc tests
|
1997-04-02 02:29:23 +08:00
|
|
|
|
1997-04-02 03:19:30 +08:00
|
|
|
# We need to export these variables when we run ltconfig.
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CPPLAGS = @CPPFLAGS@
|
|
|
|
|
1997-04-06 02:48:44 +08:00
|
|
|
aclocal_macros = libtool.m4
|
1997-04-02 03:18:28 +08:00
|
|
|
|
1997-09-15 20:31:09 +08:00
|
|
|
EXTRA_DIST = $(aclocal_macros) libtoolize.in ltconfig.in ltmain.in \
|
1998-03-06 00:23:43 +08:00
|
|
|
libtool.spec libtool.prj
|
1997-06-14 04:05:46 +08:00
|
|
|
CLEANFILES = libtool libtoolize
|
|
|
|
MAINTAINERCLEANFILES = ltconfig ltmain.sh
|
1997-04-02 02:29:23 +08:00
|
|
|
|
|
|
|
# Files in the demo subdirectory that go in the distribution.
|
1997-04-02 03:18:28 +08:00
|
|
|
demo_distfiles = demo/Makefile.in demo/Makefile.am demo/README \
|
|
|
|
demo/acinclude.m4 demo/aclocal.m4 \
|
|
|
|
demo/configure demo/configure.in demo/foo.c demo/foo.h \
|
1997-07-20 13:03:16 +08:00
|
|
|
demo/dlmain.c demo/hello.c demo/main.c demo/run.test
|
1997-04-02 02:29:23 +08:00
|
|
|
|
1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltconfig.in, ltmain.in: updated and fixed the patches below
1998-11-04 Thomas Tanner <tanner@gmx.de>
* mdemo/*: added new demo to demonstrate building of dlopenend
modules
* tests/Makefile.am, tests/mdemo*: added some tests for mdemo
1998-11-04 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
* demo/configure.in: added AC_EXEEXT macro so that the tests can
work on cywin32/mingw32 hosts. This requires the current CVS
autoconf
1998-11-04 Thomas Tanner <tanner@gmx.de>
* ltmain.in: New flag -export-symbols; new dlpreopen system
* demo/dlmain.c: removed dld_preloaded_symbol_count
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltmain.in: On installation, don't get confused if the same name
appears more than once in the list of library names.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Add objext and libext variables. Check for object
suffix. Check for mingw32* as well as cygwin32*. Use objext when
testing compiler. Add support for Visual C++ on cygwin32 when not
using gcc. Add objext, libext, and fix_srcfile_path to generated
libtool script.
* ltmain.in: Use .${objext} rather than .o. Use fix_srcfile_path
if it is set. Check for .obj as well as for .o, and for .lib as
well as for .a. Use .${libext} rather than .a when creating old
libraries.
* libtoolize.in: Change initial /bin/sh to @SHELL@.
* libtool.m4 (AM_PROG_LIBTOOL): Add AC_REQUIRE for
AC_CANONICAL_BUILD, so that autoconf doesn't get mixed up by the
AC_REQUIRE in AC_CHECK_TOOL.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Look in the right directory for libtool.c in
archive_cmds for cygwin32.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Fix cygwin32 support to avoid using a double
extension, to delete the def file, to set version_type to windows,
and to include versuffix in the DLL name.
* ltmain.in: Add support for a version_type of windows.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Add cygwin32 support.
* libtool.m4 (AM_PROG_LIBTOOL): Call AM_SYS_LIBTOOL_CYGWIN32 on a
cygwin32 host. Pass DLLTOOL and AS to ltconfig.
(AM_SYS_LIBTOOL_CYGWIN32): New macro.
1998-11-04 17:43:29 +08:00
|
|
|
# Files in the mdemo subdirectory that go in the distribution.
|
|
|
|
mdemo_distfiles = mdemo/Makefile.in mdemo/Makefile.am mdemo/README \
|
|
|
|
mdemo/acinclude.m4 mdemo/aclocal.m4 \
|
|
|
|
mdemo/configure mdemo/configure.in \
|
|
|
|
mdemo/foo.h mdemo/foo1.c mdemo/foo2.c \
|
|
|
|
mdemo/libfoo1.sym mdemo/libfoo2.sym \
|
|
|
|
mdemo/main.c mdemo/ltdl.h mdemo/ltdl.c mdemo/ltdls.c
|
|
|
|
|
1998-11-18 15:29:36 +08:00
|
|
|
# Files in the libltdl subdirectory that go in the distribution.
|
|
|
|
libltdl_distfiles = libltdl/Makefile.in libltdl/Makefile.am libltdl/README \
|
|
|
|
libltdl/acinclude.m4 libltdl/aclocal.m4 \
|
|
|
|
libltdl/configure libltdl/configure.in \
|
|
|
|
libltdl/ltdl.h libltdl/ltdl.c
|
|
|
|
|
1997-04-02 02:29:23 +08:00
|
|
|
# These are required by libtoolize.
|
|
|
|
pkgdata_SCRIPTS = config.guess config.sub ltconfig
|
|
|
|
pkgdata_DATA = ltmain.sh
|
|
|
|
|
1997-04-02 02:57:49 +08:00
|
|
|
# This macro file should be visible to Automake's aclocal.
|
1997-04-02 02:29:23 +08:00
|
|
|
aclocaldir = @aclocaldir@
|
1997-04-02 03:18:28 +08:00
|
|
|
aclocal_DATA = $(aclocal_macros)
|
1997-04-02 02:29:23 +08:00
|
|
|
|
|
|
|
# The standalone libtool script, and the libtool distributor.
|
|
|
|
bin_SCRIPTS = libtool libtoolize
|
|
|
|
|
1998-08-20 23:48:13 +08:00
|
|
|
libtool: ltmain.sh ltconfig
|
1997-07-01 12:38:32 +08:00
|
|
|
CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
|
1997-07-13 05:39:00 +08:00
|
|
|
LD="$(LD)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
|
1998-08-20 23:48:13 +08:00
|
|
|
$(SHELL) $(srcdir)/ltconfig --srcdir=$(srcdir) --output=$@ $<
|
|
|
|
|
|
|
|
# Experimental C version of libtool.
|
|
|
|
clibtool: ltmain.c ltconfig
|
|
|
|
CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
|
|
|
|
LD="$(LD)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
|
|
|
|
$(SHELL) $(srcdir)/ltconfig --srcdir=$(srcdir) --output=$@ $<
|
1997-04-02 02:29:23 +08:00
|
|
|
|
1997-04-02 03:19:30 +08:00
|
|
|
libtoolize: libtoolize.in $(top_builddir)/config.status
|
1997-04-02 02:29:23 +08:00
|
|
|
CONFIG_FILES=libtoolize CONFIG_HEADERS= $(top_builddir)/config.status
|
|
|
|
chmod +x libtoolize
|
|
|
|
|
1998-03-06 00:23:43 +08:00
|
|
|
# Do line number substitution, as well as PACKAGE and VERSION.
|
|
|
|
# Line numbering transliterated from a section in autoconf (Autoconf 2.12).
|
|
|
|
$(srcdir)/ltconfig: ltconfig.in $(top_srcdir)/configure.in
|
|
|
|
$(AWK) '/@LINENO@/ { printf "%d:", NR } { print }' $(srcdir)/ltconfig.in | \
|
|
|
|
sed -e 's/@''PACKAGE@/@PACKAGE@/' -e 's/@''VERSION@/@VERSION@/' \
|
|
|
|
-e '/@LINENO@/s/^\([0-9][0-9]*\):\(.*\)@LINENO@/\2\1/' > ltconfig.T
|
|
|
|
chmod +x ltconfig.T
|
|
|
|
mv -f ltconfig.T $@
|
1997-04-02 02:29:23 +08:00
|
|
|
|
1998-03-06 00:23:43 +08:00
|
|
|
$(srcdir)/ltmain.sh: ltmain.in $(top_srcdir)/configure.in
|
|
|
|
sed -e 's/@''PACKAGE@/@PACKAGE@/' -e 's/@''VERSION@/@VERSION@/' $(srcdir)/ltmain.in > ltmain.shT
|
|
|
|
mv -f ltmain.shT $@
|
1997-04-02 02:29:23 +08:00
|
|
|
|
1998-11-18 15:29:36 +08:00
|
|
|
# Distribute the demo, mdemo and libltdl subdirectory.
|
|
|
|
dist-hook: $(demo_distfiles) $(mdemo_distfiles) $(libltdl_distfiles)
|
1997-04-02 02:29:23 +08:00
|
|
|
mkdir $(distdir)/demo
|
1997-04-02 02:49:25 +08:00
|
|
|
-chmod 755 $(distdir)/demo
|
|
|
|
here=`pwd`; distdir=`cd $(distdir) && pwd` \
|
|
|
|
&& cd $(srcdir)/demo \
|
1997-04-02 03:21:43 +08:00
|
|
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here/demo --srcdir-name=$(srcdir)/demo --output-dir=$$distdir/demo
|
1997-04-02 02:29:23 +08:00
|
|
|
@for file in $(demo_distfiles); do \
|
1997-04-02 03:18:28 +08:00
|
|
|
d=$(srcdir); \
|
|
|
|
test -f $(distdir)/$$file \
|
|
|
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
|
|
|
|| cp -p $$d/$$file $(distdir)/$$file; \
|
1997-04-02 02:29:23 +08:00
|
|
|
done
|
1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltconfig.in, ltmain.in: updated and fixed the patches below
1998-11-04 Thomas Tanner <tanner@gmx.de>
* mdemo/*: added new demo to demonstrate building of dlopenend
modules
* tests/Makefile.am, tests/mdemo*: added some tests for mdemo
1998-11-04 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
* demo/configure.in: added AC_EXEEXT macro so that the tests can
work on cywin32/mingw32 hosts. This requires the current CVS
autoconf
1998-11-04 Thomas Tanner <tanner@gmx.de>
* ltmain.in: New flag -export-symbols; new dlpreopen system
* demo/dlmain.c: removed dld_preloaded_symbol_count
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltmain.in: On installation, don't get confused if the same name
appears more than once in the list of library names.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Add objext and libext variables. Check for object
suffix. Check for mingw32* as well as cygwin32*. Use objext when
testing compiler. Add support for Visual C++ on cygwin32 when not
using gcc. Add objext, libext, and fix_srcfile_path to generated
libtool script.
* ltmain.in: Use .${objext} rather than .o. Use fix_srcfile_path
if it is set. Check for .obj as well as for .o, and for .lib as
well as for .a. Use .${libext} rather than .a when creating old
libraries.
* libtoolize.in: Change initial /bin/sh to @SHELL@.
* libtool.m4 (AM_PROG_LIBTOOL): Add AC_REQUIRE for
AC_CANONICAL_BUILD, so that autoconf doesn't get mixed up by the
AC_REQUIRE in AC_CHECK_TOOL.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Look in the right directory for libtool.c in
archive_cmds for cygwin32.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Fix cygwin32 support to avoid using a double
extension, to delete the def file, to set version_type to windows,
and to include versuffix in the DLL name.
* ltmain.in: Add support for a version_type of windows.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Add cygwin32 support.
* libtool.m4 (AM_PROG_LIBTOOL): Call AM_SYS_LIBTOOL_CYGWIN32 on a
cygwin32 host. Pass DLLTOOL and AS to ltconfig.
(AM_SYS_LIBTOOL_CYGWIN32): New macro.
1998-11-04 17:43:29 +08:00
|
|
|
mkdir $(distdir)/mdemo
|
|
|
|
-chmod 755 $(distdir)/mdemo
|
|
|
|
here=`pwd`; distdir=`cd $(distdir) && pwd` \
|
|
|
|
&& cd $(srcdir)/mdemo \
|
|
|
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here/mdemo --srcdir-name=$(srcdir)/mdemo --output-dir=$$distdir/mdemo
|
|
|
|
@for file in $(mdemo_distfiles); do \
|
|
|
|
d=$(srcdir); \
|
|
|
|
test -f $(distdir)/$$file \
|
|
|
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
|
|
|
|| cp -p $$d/$$file $(distdir)/$$file; \
|
|
|
|
done
|
1998-11-18 15:29:36 +08:00
|
|
|
mkdir $(distdir)/libltdl
|
|
|
|
-chmod 755 $(distdir)/libltdl
|
|
|
|
here=`pwd`; distdir=`cd $(distdir) && pwd` \
|
|
|
|
&& cd $(srcdir)/libltdl \
|
|
|
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here/libltdl --srcdir-name=$(srcdir)/libltdl --output-dir=$$distdir/libltdl
|
|
|
|
@for file in $(libltdl_distfiles); do \
|
|
|
|
d=$(srcdir); \
|
|
|
|
test -f $(distdir)/$$file \
|
|
|
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
|
|
|
|| cp -p $$d/$$file $(distdir)/$$file; \
|
|
|
|
done
|
1997-04-02 03:18:28 +08:00
|
|
|
|
|
|
|
# All our rules should depend on these demo files.
|
1998-11-18 15:29:36 +08:00
|
|
|
all: demo/Makefile.in demo/configure mdemo/Makefile.in mdemo/configure \
|
|
|
|
libltdl/Makefile.in libltdl/configure
|
1997-04-02 03:18:28 +08:00
|
|
|
|
1997-06-15 11:00:00 +08:00
|
|
|
# We use our own libtool.m4.
|
1997-11-07 00:59:31 +08:00
|
|
|
$(srcdir)/acinclude.m4: libtool.m4
|
1997-06-15 11:00:00 +08:00
|
|
|
rm -f $(srcdir)/acinclude.m4
|
1997-11-07 00:59:31 +08:00
|
|
|
cd $(srcdir) && $(LN_S) libtool.m4 acinclude.m4
|
|
|
|
$(srcdir)/demo/acinclude.m4: libtool.m4
|
|
|
|
rm -f $(srcdir)/demo/acinclude.m4
|
|
|
|
cd $(srcdir)/demo && $(LN_S) ../libtool.m4 acinclude.m4
|
1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltconfig.in, ltmain.in: updated and fixed the patches below
1998-11-04 Thomas Tanner <tanner@gmx.de>
* mdemo/*: added new demo to demonstrate building of dlopenend
modules
* tests/Makefile.am, tests/mdemo*: added some tests for mdemo
1998-11-04 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
* demo/configure.in: added AC_EXEEXT macro so that the tests can
work on cywin32/mingw32 hosts. This requires the current CVS
autoconf
1998-11-04 Thomas Tanner <tanner@gmx.de>
* ltmain.in: New flag -export-symbols; new dlpreopen system
* demo/dlmain.c: removed dld_preloaded_symbol_count
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltmain.in: On installation, don't get confused if the same name
appears more than once in the list of library names.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Add objext and libext variables. Check for object
suffix. Check for mingw32* as well as cygwin32*. Use objext when
testing compiler. Add support for Visual C++ on cygwin32 when not
using gcc. Add objext, libext, and fix_srcfile_path to generated
libtool script.
* ltmain.in: Use .${objext} rather than .o. Use fix_srcfile_path
if it is set. Check for .obj as well as for .o, and for .lib as
well as for .a. Use .${libext} rather than .a when creating old
libraries.
* libtoolize.in: Change initial /bin/sh to @SHELL@.
* libtool.m4 (AM_PROG_LIBTOOL): Add AC_REQUIRE for
AC_CANONICAL_BUILD, so that autoconf doesn't get mixed up by the
AC_REQUIRE in AC_CHECK_TOOL.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Look in the right directory for libtool.c in
archive_cmds for cygwin32.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Fix cygwin32 support to avoid using a double
extension, to delete the def file, to set version_type to windows,
and to include versuffix in the DLL name.
* ltmain.in: Add support for a version_type of windows.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Add cygwin32 support.
* libtool.m4 (AM_PROG_LIBTOOL): Call AM_SYS_LIBTOOL_CYGWIN32 on a
cygwin32 host. Pass DLLTOOL and AS to ltconfig.
(AM_SYS_LIBTOOL_CYGWIN32): New macro.
1998-11-04 17:43:29 +08:00
|
|
|
$(srcdir)/mdemo/acinclude.m4: libtool.m4
|
|
|
|
rm -f $(srcdir)/mdemo/acinclude.m4
|
|
|
|
cd $(srcdir)/mdemo && $(LN_S) ../libtool.m4 acinclude.m4
|
1998-11-18 15:29:36 +08:00
|
|
|
$(srcdir)/libltdl/acinclude.m4: libtool.m4
|
|
|
|
rm -f $(srcdir)/libltdl/acinclude.m4
|
|
|
|
cd $(srcdir)/libltdl && $(LN_S) ../libtool.m4 acinclude.m4
|
1997-06-15 11:00:00 +08:00
|
|
|
|
1997-04-02 03:18:28 +08:00
|
|
|
# Rules for rebuilding some of the demo source files.
|
|
|
|
$(srcdir)/demo/Makefile.in: demo/Makefile.am demo/configure.in demo/aclocal.m4
|
1997-04-02 03:21:43 +08:00
|
|
|
cd $(srcdir)/demo && $(AUTOMAKE)
|
1997-04-02 03:18:28 +08:00
|
|
|
|
|
|
|
$(srcdir)/demo/configure: demo/configure.in demo/aclocal.m4
|
1997-06-15 11:00:00 +08:00
|
|
|
cd $(srcdir)/demo && $(AUTOCONF)
|
1997-04-02 03:18:28 +08:00
|
|
|
|
|
|
|
$(srcdir)/demo/aclocal.m4: demo/configure.in demo/acinclude.m4
|
1997-04-02 03:21:43 +08:00
|
|
|
cd $(srcdir)/demo && $(ACLOCAL)
|
1997-11-28 00:57:00 +08:00
|
|
|
|
1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltconfig.in, ltmain.in: updated and fixed the patches below
1998-11-04 Thomas Tanner <tanner@gmx.de>
* mdemo/*: added new demo to demonstrate building of dlopenend
modules
* tests/Makefile.am, tests/mdemo*: added some tests for mdemo
1998-11-04 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
* demo/configure.in: added AC_EXEEXT macro so that the tests can
work on cywin32/mingw32 hosts. This requires the current CVS
autoconf
1998-11-04 Thomas Tanner <tanner@gmx.de>
* ltmain.in: New flag -export-symbols; new dlpreopen system
* demo/dlmain.c: removed dld_preloaded_symbol_count
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltmain.in: On installation, don't get confused if the same name
appears more than once in the list of library names.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Add objext and libext variables. Check for object
suffix. Check for mingw32* as well as cygwin32*. Use objext when
testing compiler. Add support for Visual C++ on cygwin32 when not
using gcc. Add objext, libext, and fix_srcfile_path to generated
libtool script.
* ltmain.in: Use .${objext} rather than .o. Use fix_srcfile_path
if it is set. Check for .obj as well as for .o, and for .lib as
well as for .a. Use .${libext} rather than .a when creating old
libraries.
* libtoolize.in: Change initial /bin/sh to @SHELL@.
* libtool.m4 (AM_PROG_LIBTOOL): Add AC_REQUIRE for
AC_CANONICAL_BUILD, so that autoconf doesn't get mixed up by the
AC_REQUIRE in AC_CHECK_TOOL.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Look in the right directory for libtool.c in
archive_cmds for cygwin32.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Fix cygwin32 support to avoid using a double
extension, to delete the def file, to set version_type to windows,
and to include versuffix in the DLL name.
* ltmain.in: Add support for a version_type of windows.
1998-11-04 Ian Lance Taylor <ian@cygnus.com>
* ltconfig.in: Add cygwin32 support.
* libtool.m4 (AM_PROG_LIBTOOL): Call AM_SYS_LIBTOOL_CYGWIN32 on a
cygwin32 host. Pass DLLTOOL and AS to ltconfig.
(AM_SYS_LIBTOOL_CYGWIN32): New macro.
1998-11-04 17:43:29 +08:00
|
|
|
$(srcdir)/mdemo/Makefile.in: mdemo/Makefile.am mdemo/configure.in mdemo/aclocal.m4
|
|
|
|
cd $(srcdir)/mdemo && $(AUTOMAKE)
|
|
|
|
|
|
|
|
$(srcdir)/mdemo/configure: mdemo/configure.in mdemo/aclocal.m4
|
|
|
|
cd $(srcdir)/mdemo && $(AUTOCONF)
|
|
|
|
|
|
|
|
$(srcdir)/mdemo/aclocal.m4: mdemo/configure.in mdemo/acinclude.m4
|
|
|
|
cd $(srcdir)/mdemo && $(ACLOCAL)
|
|
|
|
|
1998-11-18 15:29:36 +08:00
|
|
|
$(srcdir)/libltdl/Makefile.in: libltdl/Makefile.am libltdl/configure.in libltdl/aclocal.m4
|
|
|
|
cd $(srcdir)/libltdl && $(AUTOMAKE)
|
|
|
|
|
|
|
|
$(srcdir)/libltdl/configure: libltdl/configure.in libltdl/aclocal.m4
|
|
|
|
cd $(srcdir)/libltdl && $(AUTOCONF)
|
|
|
|
|
|
|
|
$(srcdir)/libltdl/aclocal.m4: libltdl/configure.in libltdl/acinclude.m4
|
|
|
|
cd $(srcdir)/libltdl && $(ACLOCAL)
|
|
|
|
|
1997-11-29 01:23:28 +08:00
|
|
|
######################################################################
|
1997-11-28 00:57:00 +08:00
|
|
|
# These commands really help my life as a maintainer who uses PRCS.
|
|
|
|
# Feel free to copy them to your own project. I just run a
|
|
|
|
# maintainer-checkin whenever I feel like it, then I run a maintainer-release
|
|
|
|
# after changing the project major version number in my project file.
|
|
|
|
#
|
1997-11-28 00:57:00 +08:00
|
|
|
# This works because of the special `$Format: ...$' string I have in my
|
1997-11-28 00:57:00 +08:00
|
|
|
# `configure.in'.
|
|
|
|
PRCS = prcs
|
1998-04-20 03:21:49 +08:00
|
|
|
released = $(top_srcdir)/.released
|
1997-11-28 00:57:00 +08:00
|
|
|
|
1998-04-20 03:21:49 +08:00
|
|
|
# At least configure.in should be rekeyed, but you can also add other files.
|
|
|
|
rekey_files = configure.in libtool.spec
|
|
|
|
|
|
|
|
.PHONY: maintainer-checkin maintainer-rekey maintainer-release
|
|
|
|
maintainer-checkin: maintainer-rekey
|
1998-05-18 19:03:32 +08:00
|
|
|
cd $(top_srcdir) && $(PRCS) checkin -f $(PACKAGE).prj
|
1997-11-28 00:57:00 +08:00
|
|
|
|
1998-04-20 03:21:49 +08:00
|
|
|
maintainer-rekey:
|
1997-11-28 00:57:00 +08:00
|
|
|
@newver=`grep '^(Project-Version[ ]' $(srcdir)/$(PACKAGE).prj | \
|
1997-11-28 00:57:00 +08:00
|
|
|
sed 's/^.*[ ]\+\([^ ]\+\)[ ]\+[0-9]\+).*$$/\1/'`; \
|
|
|
|
if test "X$$newver" = "X$(VERSION)"; then \
|
1998-04-20 03:21:49 +08:00
|
|
|
if test -f "$(released)"; then \
|
|
|
|
echo "New development cycle: change Project-Version in $(top_srcdir)/$(PACKAGE).prj."; \
|
1998-04-20 03:29:28 +08:00
|
|
|
exit 1; \
|
1998-04-20 03:21:49 +08:00
|
|
|
else \
|
|
|
|
echo "No need to rekey any files"; \
|
|
|
|
fi; \
|
|
|
|
else \
|
|
|
|
rm -f "$(released)"; \
|
1998-05-18 19:03:32 +08:00
|
|
|
echo "cd $(top_srcdir) && $(PRCS) rekey -f $(PACKAGE).prj $(rekey_files)"; \
|
|
|
|
cd $(top_srcdir) && $(PRCS) rekey -f $(PACKAGE).prj $(rekey_files); \
|
1997-11-28 00:57:00 +08:00
|
|
|
fi
|
|
|
|
|
1998-04-20 03:29:28 +08:00
|
|
|
maintainer-release: maintainer-rekey distcheck
|
1998-05-18 19:03:32 +08:00
|
|
|
cd $(top_srcdir) && $(PRCS) checkin -f $(PACKAGE).prj
|
|
|
|
echo "$(VERSION)" > "$(release)"
|
1997-12-02 02:36:19 +08:00
|
|
|
@echo "============================="; \
|
1997-11-28 00:57:00 +08:00
|
|
|
echo "Congratulations! $(PACKAGE)-$(VERSION) is now complete."; \
|
|
|
|
echo; \
|
1997-11-29 01:23:28 +08:00
|
|
|
echo "Distribute \`$(PACKAGE)-$(VERSION).tar.gz' to the masses, and don't forget"; \
|
|
|
|
echo "any other details you need to complete this release."; \
|
1997-11-28 00:57:00 +08:00
|
|
|
echo "============================="
|