Skip to content

Commit

Permalink
preparation for autoconf and automake for dmake
Browse files Browse the repository at this point in the history
  • Loading branch information
mh committed Apr 20, 2001
1 parent 1f54c5c commit 0bf3e6c
Show file tree
Hide file tree
Showing 18 changed files with 5,373 additions and 0 deletions.
Empty file added AUTHORS
Empty file.
Empty file added COPYING
Empty file.
Empty file added ChangeLog
Empty file.
Empty file added INSTALL
Empty file.
18 changes: 18 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

bin_PROGRAMS = dmake
dmake_SOURCES = \
infer.c make.c stat.c expand.c dmstring.c hash.c dag.c dmake.c\
path.c imacs.c sysintf.c parse.c getinp.c quit.c state.c\
dmdump.c macparse.c rulparse.c percent.c function.c
dmake_LDADD = unix/libunix.a

SUBDIRS = unix startup

EXTRA_DIST = make.c

bin_PROGRAMS = dmake

# set the include path found by configure
INCLUDES = -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/unix/linux -I$(top_srcdir)/unix -I$(top_srcdir)/unix/linux/gnu


6 changes: 6 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

dmake NEWS

Version 4.2

* give dmake automake/autoconf -> configure
14 changes: 14 additions & 0 deletions acinclude.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## -*- autoconf -*-

dnl set the dmake root
AC_DEFUN(AC_SET_DMAKEROOT,
[
if test "${prefix}" != NONE; then
DMAKEROOT=${prefix}/share/startup/startup.mk
export DMAKEROOT
else
DMAKEROOT=startup.mk
export DMAKEROOT
fi
])

92 changes: 92 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd $srcdir
PROJECT=dmake
TEST_TYPE=-f
FILE=make.c

DIE=0

(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile $PROJECT."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}

(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to compile $PROJECT."
echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}

if test "$DIE" -eq 1; then
exit 1
fi

test $TEST_TYPE $FILE || {
echo "You must run this script in the top-level $PROJECT directory"
exit 1
}

if test -z "$*"; then
echo "I am going to run ./configure with no arguments - if you wish "
echo "to pass any to it, please specify them on the $0 command line."
fi

case $CC in
*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
esac

if test -z "$ACLOCAL_FLAGS"; then

acdir=`aclocal --print-ac-dir`
m4list="glib.m4 gettext.m4"

for file in $m4list
do
if [ ! -f "$acdir/$file" ]; then
echo "WARNING: aclocal's directory is $acdir, but..."
echo " no file $acdir/$file"
echo " You may see fatal macro warnings below."
echo " If these files are installed in /some/dir, set the ACLOCAL_FLAGS "
echo " environment variable to \"-I /some/dir\", or install"
echo " $acdir/$file."
echo ""
fi
done
fi

echo "Running gettextize... Ignore non-fatal messages."
# Hmm, we specify --force here, since otherwise things dont'
# get added reliably, but we don't want to overwrite intl
# while making dist.
echo "no" | gettextize --copy --force

#
# Really bad hack
echo "Munging po/Makefile.in.in"
sed s%@PACKAGE@%@GETTEXT_PACKAGE@% < po/Makefile.in.in > po/Makefile.in.in.new
mv po/Makefile.in.in.new po/Makefile.in.in

aclocal $ACLOCAL_FLAGS

# optionally feature autoheader
(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader

automake -a $am_opt
autoconf
cd $ORIGDIR

$srcdir/configure --enable-maintainer-mode --prefix=/usr/local/test "$@"

echo
echo "Now type 'make' to compile $PROJECT."
Loading

0 comments on commit 0bf3e6c

Please sign in to comment.