Files
mercury/Makefile
Fergus Henderson d8ea9c5247 Save the output of make all' and make install' in log files.
Estimated hours taken: 0.2

mercury/Makefile:
	Save the output of `make all' and `make install' in log files.
1996-01-26 14:22:53 +00:00

59 lines
1.7 KiB
Makefile

#-----------------------------------------------------------------------------#
#
# This Makefile just invokes `mmake' to do the real work.
# Standard targets include `all', `install', and `clean'.
#
# If you want to do a parallel make, invoke make as
# make PARALLEL=-j2
# or
# make PARALLEL=-j2 install
# (`-j2' is for 2 jobs; you can use `-j3' for 3, etc.)
#
#-----------------------------------------------------------------------------#
SHELL= /bin/sh
MMAKE= MMAKE_DIR=`pwd`/scripts scripts/mmake
MMAKE_SUBDIR= MMAKE_DIR=`pwd`/../scripts ../scripts/mmake $(PARALLEL)
# PARALLEL=-j2
#-----------------------------------------------------------------------------#
all:
$(MMAKE) MMAKEFLAGS=$(PARALLEL) all 2>&1 | tee make_all.log
install:
$(MMAKE) MMAKEFLAGS=$(PARALLEL) install 2>&1 | tee make_install.log
# `mmake clean' has a different meaning to the usual GNU standard `make clean':
# it removes the .c files, which makes bootstrapping impossible unless you
# have already installed a working Mercury compiler.
# Hence we don't just use `$(MMAKE) clean' here.
clean:
-rm -f */*.o */*.pic_o */*.a */*.so */*.no */*.ql */*.pl
-rm -f compiler/mercury_compile profiler/mercury_profile
-rm -f library/library.nu* library/library.sicstus*
-rm -f library/sicstus_compile util/mdemangle util/mkinit
cd boehm_gc; $(MMAKE_SUBDIR) clean
distclean: clean
cd scripts; for file in *.in; do rm -f `basename $file .in`; done
-rm -f Mmake.common runtime/conf.h bindist/bindist.build_vars
-rm -f config.cache config.status config.log
maintainer-clean:
$(MMAKE) clean
realclean:
$(MMAKE) realclean
uninstall:
$(MMAKE) uninstall
.DEFAULT:
$(MMAKE) $@
#-----------------------------------------------------------------------------#