# # Imakefile for TeX etc. # # $Header: /afs/athena.mit.edu/astaff/project/newtex/src/RCS/Imakefile,v 1.1 94/05/19 07:51:01 bert Exp Locker: bert $ # /* for debugging of make install */ DESTDIR = /scratch/test /*** flags and configuration ***/ WFLAGS = CC="$(CC)" CFLAGS="$(CDEBUG)" $(WXFLAGS) /* on RS6000s w/xlc, MetaFont fails trap. We can give up on MF or use GCC. */ #if defined(_AIX) CC=gcc CDEBUG=-O1 /* Everything except mft builds with -O2 and pases trip/trap... sniff.*/ #endif #if defined(SOLARIS) CC=gcc CDEBUG=-O2 #endif #if defined(ultrix) CDEBUG=-O1 #endif /* #define ISUBDIRS tex web2c dvi2ps man */ /* #define XSUBDIRS xdvi */ # Note: The ordering of things here is often important. /*** install directory tree ***/ create_dir($(ATHLIBDIR)/tex/fonts) create_dir($(ATHLIBDIR)/tex/formats) create_dir($(ATHLIBDIR)/tex/macros) create_dir($(ATHLIBDIR)/tex/ps) create_dir($(ATHLIBDIR)/mf/bases) create_dir($(ATHLIBDIR)/mf/macros) create_dir($(ATHLIBDIR)/mf/typefaces) create_dir($(ATHMANDIR)/man1) /*** installing the "static" files from lib ***/ do_subdirs_flags(lib,ATHLIBDIR="$(ATHLIBDIR)") /*** WEB2C build: configure ***/ Makefiles:: Makefile web2c/config.status @cd web2c; echo "### Generating Makefiles for TeX/MF";\ ./config.status; echo "### ...done." configure:: -@if [ -f web2c/config.status ]; then \ echo " $(RM) web2c/config.status.old;" \ "mv web2c/config.status web2c/config.status.old"; \ $(RM) web2c/config.status.old; \ mv web2c/config.status web2c/config.status.old; \ else exit 0; fi configure:: web2c/config.status web2c/config.status: date >> .triptrap @cd web2c; \ echo "### Configuring TeX/MF: CC='$(CC)' CFLAGS='$(CDEBUG)'"; \ CC="$(CC)" CFLAGS="$(CDEBUG)" \ ./configure --prefix=$(ATHBASEDIR) --no-create; echo "### ...done." /*** WEB2C build: one additional hack... ***/ /* * under AIX, math.h declares the function * extern int class(double x); * which conflicts with something in vptovf.c. We have two options: * (1) remove the problem from C source generated from Pascal source * generated from WEB source. Make my day. * (2) remove the problem from math.h. * math.h.rsaix is a disgusting little hack that accomplishes the latter. */ #ifdef _AIX all auto-triptrap:: web2c/lib/math.h web2c/lib/math.h: web2c/lib/math.h.rsaix ln -s math.h.rsaix web2c/lib/math.h #endif /*** WEB2C build: trip+trap ***/ triptrap:: $(RM) .triptrap triptrap:: auto-triptrap auto-triptrap:: FRC @if [ -f .triptrap ]; then \ cd web2c; echo "### Making trip and trap (TeX/MF test suite)"; \ make $(MFLAGS) DESTDIR=$(DESTDIR) triptrap run-triptrap clean-triptrap;\ echo "### ...done with trip/trap"; rm -f ../.triptrap; fi clean-triptrap:: FRC @cd web2c; echo "### Cleaning trip and trap"; \ make $(MFLAGS) DESTDIR=$(DESTDIR) clean-triptrap;\ echo "### ...done cleaning trip/trap" /*** WEB2C build: do it for real ***/ all:: auto-triptrap do_subdirs(web2c) /*** "standard" procedure for xdvi and dvips ***/ #define XSUBDIRS xdvi #define ISUBDIRS dvips # clean:: # (cd web2c ; make ${FLAGS} veryclean)