Fresco logo Fresco title

trunk/contrib/daVinci/Makefile.in

CVS Help

File: [Fresco] / trunk / contrib / daVinci / Makefile.in (download)
Revision: 1600, Sun Apr 6 16:15:59 2003 UTC (7 years, 5 months ago) by tobias
File size: 2992 byte(s)
* Make sure that we don't try to build/run tests if Fresco-Test is not around
* Make all Makefiles aware of build-tests and run-tests.
* Added a doc/ and doc/examples/ directory to Fresco-Test with some FAQ-like
    explaination on how to write tests/integrate tests into the framework

The unit test framework is in place now... only the actual tests are still
missing;-)
# $Id$
#
# This source file is a part of the Fresco Project.
# Copyright (C) 1999, 2000 Stefan Seefeld <stefan@fresco.org> 
# http://www.fresco.org
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
# MA 02139, USA.

SHELL	:= /bin/sh

srcdir		:= @srcdir@
top_srcdir	:= @top_srcdir@

distdir		:= @PACKAGE_NAME@-@PACKAGE_VERSION@

subdirs	:= src #modules

# Overridden by the clean-targets, allowing the same subdirs-rule to be used
# for everything.
action	:= all

.PHONY: all $(subdirs)
.PHONY: depend doc install install-doc dist \
        uninstall clean distclean maintainer-clean

all:	$(subdirs)

# insert inter-directory dependencies here
modules: src
server: src

$(subdirs):
	@echo making $(action) in $@
	$(MAKE) -C $@ $(action)

depend:
	$(MAKE) action="depend"

doc:
	$(MAKE) action="doc"

xref:
	$(MAKE) action="xref"

install:
	$(MAKE) action="install"

install-doc:
	$(MAKE) action="install-doc"

rpm: dist
	@(unset CDPATH ; rpm -ta $(distdir).tar.gz)

dist: $(distdir).tar.gz

$(distdir).tar.gz:
	@echo "generating $@..."
	-rm -rf $(distdir)
	cp -pr $(srcdir) $(distdir)
	-chmod -R a+r $(distdir)
	cp config/Berlin.spec $(distdir)/config/
	tar czhf $(distdir).tar.gz \
       --exclude CVS \
       --exclude .cvsignore \
       --exclude autom4te.cache \
       --exclude '*.m4' \
       --exclude '*.ac' \
       --exclude '*~' \
       $(distdir)
	-rm -rf $(distdir)

uninstall:
	$(MAKE) action="uninstall"

build-tests:
	$(MAKE) action="build-tests"

run-tests:
	$(MAKE) action="run-tests"

clean:
	$(MAKE) action="clean"

distclean:
	@echo 'This command removes Makefiles and auxiliary files;'
	@echo 'run configure to regenerate them.'
	$(MAKE) action="distclean"
	rm -rf Makefile config/local.mk config.cache config.log config.status \
               config/Berlin-config config/synopsis.py \
               $(top_srcdir)/autom4te.cache $(top_srcdir)/config/aclocal.m4


maintainer-clean:
	@echo 'This command is intended for maintainers to use;'
	@echo 'it deletes configure and auxiliary files;'
	@echo 'run autogen.sh to regenerated them.'
	$(MAKE) action="maintainer-clean"
	rm -rf Makefile config/local.mk config.cache config.log config.status \
               config/Berlin-config config/synopsis.py \
               $(top_srcdir)/autom4te.cache $(top_srcdir)/config/aclocal.m4 \
               $(top_srcdir)/configure