Functionality subsumed by Cabal

This commit is contained in:
Don Stewart 2005-09-03 04:45:40 +00:00
parent bb5520a88e
commit 3dfd017b32
2 changed files with 13 additions and 33 deletions

View File

@ -1,30 +1,12 @@
# Copyright (c) 2004 Don Stewart - http://www.cse.unsw.edu.au/~dons # Copyright (c) 2004 Don Stewart - http://www.cse.unsw.edu.au/~dons
# LGPL version 2.1 or later (see http://www.gnu.org/copyleft/lesser.html) # LGPL version 2.1 or later (see http://www.gnu.org/copyleft/lesser.html)
# cut down reimplementation of $fptools/mk directory
#
# installing
#
# TODO put these in subdirs
install:
$(INSTALL_DATA_DIR) $(LIBDIR)/include
$(INSTALL_DATA) EvalHaskell.h $(LIBDIR)/include
$(INSTALL_DATA_DIR) $(MANDIR)/man1
$(INSTALL_DATA) docs/hs-plugins.1 $(MANDIR)/man1
cd src && ./setup install
# #
# regress check. TODO check expected output # regress check. TODO check expected output
# #
check: check:
@if [ ! -f EvalHaskell.h ] ; then \
echo "run 'make' first" ; \
exit 1 ;\
fi
@( d=/tmp/plugins.tmp.$$$$ ; mkdir $$d ; export TMPDIR=$$d ;\ @( d=/tmp/plugins.tmp.$$$$ ; mkdir $$d ; export TMPDIR=$$d ;\
for i in `find examples ! -name CVS -type d -maxdepth 2 -mindepth 2 | sort` ; do \ for i in `find testsuite ! -name CVS -type d -maxdepth 2 -mindepth 2 | sort` ; do \
printf "=== testing %-50s ... " "$$i" ; \ printf "=== testing %-50s ... " "$$i" ; \
( cd $$i ; if [ -f dont_test ] ; then \ ( cd $$i ; if [ -f dont_test ] ; then \
echo "ignored." ;\ echo "ignored." ;\
@ -47,18 +29,16 @@ clean:
cd docs && $(MAKE) clean cd docs && $(MAKE) clean
runhaskell Setup.hs clean 2> /dev/null || true runhaskell Setup.hs clean 2> /dev/null || true
rm -rf $(CLEAN_FILES) rm -rf $(CLEAN_FILES)
find examples -name '*.a' -exec rm {} \; find testsuite -name '*.a' -exec rm {} \;
find examples -name '*~' -exec rm {} \; find testsuite -name '*~' -exec rm {} \;
find examples -name 'a.out' -exec rm {} \; find testsuite -name 'a.out' -exec rm {} \;
find examples -name '*.hi' -exec rm {} \; find testsuite -name '*.hi' -exec rm {} \;
find examples -name '*.o' -exec rm {} \; find testsuite -name '*.o' -exec rm {} \;
find examples -name '*.core' -exec rm {} \; find testsuite -name '*.core' -exec rm {} \;
find examples -name 'package.conf' -exec rm {} \; find testsuite -name 'package.conf' -exec rm {} \;
rm -f examples/makewith/io/TestIO.conf rm -f testsuite/makewith/io/TestIO.conf
rm -f examples/makewith/unsafeio/Unsafe.conf rm -f testsuite/makewith/unsafeio/Unsafe.conf
rm -rf examples/hmake/lib-plugs/plugs rm -rf testsuite/plugs/plugs/plugs
rm -rf examples/hmake/one-shot/runplugs rm -rf testsuite/plugs/plugs/runplugs
rm -f EvalHaskell.h
rm -rf $(EXTRA_CLEANS) rm -rf $(EXTRA_CLEANS)
-include config.mk

2
README
View File

@ -74,7 +74,7 @@ DEPENDENCIES:
EXAMPLES: EXAMPLES:
Have a look in the examples/ directory for many examples of how to Have a look in the testsuite/ directory for many examples of how to
arrange your code. arrange your code.
LICENSE: LICENSE: