1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
# Copyright (C) 2002, 2004, 2005, 2006, 2007, 2008 Rocky Bernstein
# rocky@gnu.org
#
# bashdb is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version.
#
# bashdb is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License along
# with bashdb; see the file COPYING. If not, write to the Free Software
# Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA.
#$Id: Makefile.am,v 1.43 2008/10/25 13:58:51 rockyb Exp $
AUTOMAKE_OPTIONS = dist-bzip2
subdirs = command lib doc test
if INSTALL_EMACS_LISP
emacs = emacs
else
emacs =
endif
if BUILD_BUILTINS
SUBDIRS = builtin $(subdirs) $(emacs)
else
SUBDIRS = $(subdirs) $(emacs)
endif
man:
@( cd $(top_builddir)/doc ; $(MAKE) $(MFLAGS) man )
html:
@( cd $(top_builddir)/doc ; $(MAKE) $(MFLAGS) html )
# Set up the install target
bin_SCRIPTS = bashdb
pkgdatadir=$(datadir)/bashdb
data_DATA =
pkgdata_DATA = dbg-init.sh \
dbg-io.sh \
dbg-main.sh \
dbg-opts.sh \
dbg-pre.sh \
dbg-set-d-vars.inc \
bashdb-main.inc \
bashdb-trace \
getopts_long.sh
EXTRA_DIST = bashdb.in bashdb-trace.in bashdb-main.inc.in dbg-main.sh.in \
$(pkgdata_DATA) acinclude.m4 THANKS \
ChangeLog ChangeLog.0
#
# This is ugly. Bash 3.0 requires things to be different than where
# many OS's would want to put bash debugger scripts or where a user
# may have asked for this to be put. It's wrong in the directory
# names it uses and for the name of the main include.
# So... using the place that configure determined bash
# wants this to be put, (BASHDB_MAIN), we try to remove any existing files
# before making a symbolic link to it. Also if was in a directory
# (containing perhaps old code), that gets removed and a symbolic link
# is added or relocated if there was another symbolic link. Finally
# the basename that bash wants to use is symlinked to the main name
# that this distribution uses dbg-main.sh, unless those are the same.
#
OLD_DIR = $(dir @BASHDB_MAIN@)
OLD_MAIN = $(notdir @BASHDB_MAIN@)
PARENT_DIR = $(dir $(OLD_DIR))
install-data-hook:
@if test -d $(DESTDIR)$(OLD_DIR) ; then \
$(RM) -f $(DESTDIR)$(OLD_DIR)/* || true; \
$(MAKE) $(AM_MAKEFLAGS) install-pkgdataDATA; \
else if test -L $(DESTDIR)$(OLD_DIR:/=) ; then \
$(RM) -f $(DESTDIR)$(OLD_DIR:/=) || true; \
$(MAKE) $(AM_MAKEFLAGS) install-pkgdataDATA; \
fi; fi
test -d $(DESTDIR)$(PKGDATADIR) || $(mkdir_p) $(DESTDIR)$(PKGDATADIR)
test: check
# Unit testing
check-unit: test-unit
test-unit:
cd test/unit && make check
# cvs2cl
MAINTAINERCLEANFILES = ChangeLog
if MAINTAINER_MODE
.PHONY: ChangeLog
ChangeLog:
git log --pretty --numstat --summary | git2cl > ChangeLog
ACLOCAL_AMFLAGS=-I .
endif
#;;; Local Variables: ***
#;;; mode:makefile ***
#;;; End: ***
|