summaryrefslogtreecommitdiff
path: root/Build/source/Makefile.in
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-03-01 01:29:07 +0000
committerKarl Berry <karl@freefriends.org>2006-03-01 01:29:07 +0000
commitaa65371109d1ddff979d7f3bbe88a03094d536ad (patch)
tree7748762472ebb4d8057b1a381280447969554f65 /Build/source/Makefile.in
parentb91215c43a1b26b44e084d9ff283ce9ce6f9a033 (diff)
use (te)TeX build files
git-svn-id: svn://tug.org/texlive/trunk@1537 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/Makefile.in')
-rw-r--r--Build/source/Makefile.in198
1 files changed, 131 insertions, 67 deletions
diff --git a/Build/source/Makefile.in b/Build/source/Makefile.in
index 4ed8caa4cac..9b94eae9ea7 100644
--- a/Build/source/Makefile.in
+++ b/Build/source/Makefile.in
@@ -1,107 +1,171 @@
-# Makefile for texlive distribution.
+# $Id$
+# Makefile for teTeX distribution, also used for TeX Live.
-srcdir = @srcdir@
-VPATH = $(srcdir)
-
-CC = @CC@
+# This program 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.
-INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_DATA = @INSTALL_DATA@
+# This program 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.
-LN = @LN_S@
-RM = rm -f
-TAR = tar
-MKDIR = mkdir
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-DEFS = @DEFS@
-LIBS = @LIBS@
+srcdir = @srcdir@
+VPATH = $(srcdir)
SHELL = /bin/sh
-CFLAGS = @CFLAGS@
-LDFLAGS = @LDFLAGS@
-
prefix = @prefix@
exec_prefix = @exec_prefix@
-datadir = @datadir@
bindir = @bindir@
-libdir = @libdir@
scriptdir = $(bindir)
-manext = 1
-mandir = @mandir@/man$(manext)
-infodir = @infodir@
-texmfmain = @texmfmain@
+texmf = @texmfmain@
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_DATA = @INSTALL_DATA@
+
+NCURSESDIR=libs/ncurses
+ZLIBDIR=libs/zlib
+LIBPNGDIR=libs/libpng
+LIBT1DIR=libs/t1lib
+LIBTYPE1DIR=$(LIBT1DIR)/../type1
+LIBXPDFDIR=libs/xpdf
+GDDIR=libs/gd
+FREETYPEDIR=libs/freetype
# Subdirectories that have makefiles
-ESUBDIRS = TeX
+ESUBDIRS = @ESUBDIRS@ texk
+LIBSDIRS = @LIBSDIRS@
-MDEFINES = bindir='$(bindir)' scriptdir='$(scriptdir)'
+# Subdirectories for which we want to run make (un)install; these are
+# different for xdvik standalone distribution where we don't want to
+# install kpathsea and friends by default.
+INSTDIRS = @INSTDIRS@
default: all
install: all
- for dir in $(ESUBDIRS); do \
+ for dir in $(INSTDIRS); do \
echo making $@ in $$dir; \
- (cd $$dir && PATH=$(scriptdir):$(bindir):$(PATH) \
- $(MAKE) $(MDEFINES) $@) || exit 1; \
+ (cd $$dir && PATH=$(scriptdir):$(bindir):$(PATH) \
+ $(MAKE) $@) || exit 1; \
done
+ if test -d $(texmf) && test -f $(srcdir)/release-tetex-src.txt; then \
+ $(INSTALL_DATA) $(srcdir)/release-tetex-src.txt $(texmf); \
+ fi
+@FMU@
+@FMU@install-extra:
+# temporary fix for missing links
+ - if test -f texk/web2c/omegafonts/omfonts; then \
+ cd texk/web2c/omegafonts && $(MAKE) install-links; \
+ else :; fi
+ $(srcdir)/selfautofix "$(bindir)" "$(texmf)/web2c"
+ - if test -f $(scriptdir)/mktexlsr; then \
+ TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
+ $(scriptdir)/mktexlsr; \
+ else :; fi
+ - if test -f $(scriptdir)/fmtutil-sys; then \
+ TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
+ $(scriptdir)/fmtutil-sys --all; \
+ else :; fi
+ - if test -f $(scriptdir)/texlinks; then \
+ TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
+ $(scriptdir)/texlinks; \
+ else :; fi
+ - if test -f $(scriptdir)/updmap-sys \
+ && TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
+ $(scriptdir)/kpsewhich --format='web2c files' updmap.cfg >/dev/null; \
+ then \
+ TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
+ $(scriptdir)/updmap-sys; \
+ else :; fi
install-exec:
- for dir in $(ESUBDIRS); do \
+ for dir in $(INSTDIRS); do \
echo making $@ in $$dir; \
(cd $$dir && PATH=$(scriptdir):$(bindir):$(PATH) \
- $(MAKE) $(MDEFINES) $@) || exit 1; \
+ $(MAKE) $@) || exit 1; \
done
+@FMU@
+@FMU@install-exec-extra:
+# temporary fix for missing links
+ - if test -f texk/web2c/omegafonts/omfonts; then \
+ cd texk/web2c/omegafonts && $(MAKE) install-links; \
+ else :; fi
+ - if test -f $(scriptdir)/texlinks; then \
+ TEXMFMAIN=$(texmf) PATH=$(scriptdir):$(bindir):$(PATH) \
+ $(scriptdir)/texlinks; \
+ else :; fi
+
+strip:
+
+check:
+ cd texk; TEXMF='{$(texmf),$(texmf)-dist}' TEXMFCNF=$(texmf)/web2c $(MAKE) $@
uninstall:
- for dir in $(ESUBDIRS); do \
+ for dir in $(INSTDIRS); do \
echo making $@ in $$dir; \
- (cd $$dir && $(MAKE) $(MDEFINES) $@) || exit 1; \
+ (cd $$dir && $(MAKE) $@) || exit 1; \
done
Makefile: Makefile.in config.status
$(SHELL) ./config.status
-all:
- for dir in $(ESUBDIRS); do \
- echo making $@ in $$dir; \
- (if test -f $$dir/Makefile; then cd $$dir && $(MAKE) $(MDEFINES) $@; else true; fi) || exit 1; \
- done
-
-clean mostlyclean:
- for dir in $(ESUBDIRS); do \
- echo making $@ in $$dir; \
- (if test -f $$dir/Makefile; then cd $$dir && $(MAKE) $(MDEFINES) $@; else true; fi) || exit 1; \
- done
+all: @LIBSDEP@
+all clean mostlyclean:
+ esubdirs="$(LIBSDIRS) $(ESUBDIRS)"; \
+ for dir in $$esubdirs; do \
+ echo making $@ in $$dir; \
+ (if test -f $$dir/Makefile; then cd $$dir && $(MAKE) $@; else true; fi) || exit 1; \
+ done
distclean: clean
- for dir in $(ESUBDIRS) ; do \
- echo making $@ in $$dir; \
- (if test -f $$dir/Makefile; then cd $$dir && $(MAKE) $(MDEFINES) $@; else true; fi) || exit 1; \
- done
- -find . \( -name config.cache -o -name config.log \) -print -exec rm {} \;
- -rm Makefile config.status
- # this should happen somewhere else, but for now, we have it here
- rm -f TeX/texk/dtl/libtool TeX/texk/lacheck/libtool \
- TeX/texk/web2c/doc/Makefile TeX/texk/web2c/lib/lib.a \
- TeX/texk/web2c/gftodvi.h TeX/texk/web2c/vptovf.c \
- TeX/texk/web2c/conftest TeX/texk/web2c/conftest.C \
- TeX/texk/web2c/gftopk.h TeX/texk/web2c/window/window.a \
- TeX/texk/seetexk/libtool TeX/texk/seetexk/libtex.a \
- TeX/texk/kpathsea/libtool TeX/texk/tex4htk/libtool \
- TeX/texk/musixflx/libtool TeX/texk/texlive/libtool \
- TeX/texk/dvidvi/libtool TeX/texk/cjkutils/scripts/Makefile \
- TeX/utils/texinfo/doc/version.texi \
- TeX/utils/texinfo/doc/stamp-1 TeX/utils/texinfo/doc/stamp-vti \
- TeX/utils/texinfo/doc/version-stnd.texi \
- TeX/texk/conftest TeX/texk/conftest.c TeX/texk/conftest.o
+ cleandirs="$(LIBSDIRS) $(ESUBDIRS)"; \
+ for dir in $$cleandirs; do \
+ echo making $@ in $$dir; \
+ (if test -f $$dir/Makefile; then cd $$dir && $(MAKE) $@; else true; fi) || exit 1; \
+ done
+ rm -f Makefile *.status *.cache *.log dialogconfig.h TAGS
+ rm -f libs/klibtool.config libs/config.log libs/config.status libs/config.cache libs/kpse_empty
+ rm -f utils/texinfo/info/funs.h utils/texinfo/info/doc.c utils/texinfo/info/key.c
-realclean: distclean
+tags TAGS:
+ rm -f TAGS
+ find . -name '*.[ch]' -print | xargs etags --append -o TAGS
-world: all install strip
-strip:
- cd $(bindir); strip * >/dev/null 2>&1 || true
+realclean: distclean
+world: all install
+pdftex pdfetex:
+ cd texk/web2c; $(MAKE) $@
+ test -f texk/web2c/pdftex && ls -l texk/web2c/pdftex
+ test -f texk/web2c/pdfetex && ls -l texk/web2c/pdfetex
+
+$(NCURSESDIR)/lib/libncurses.a:
+ cd $(NCURSESDIR); $(MAKE)
+$(ZLIBDIR)/libz.a:
+ cd $(ZLIBDIR); $(MAKE) libz.a
+$(LIBPNGDIR)/libpng.a:
+ cd $(LIBPNGDIR); $(MAKE) libpng.a
+$(LIBT1DIR)/libt1.a:
+ cd $(LIBT1DIR); $(MAKE) libt1.a
+$(LIBTYPE1DIR)/libtype1.a:
+ cd $(LIBTYPE1DIR); $(MAKE) libtype1.a
+$(LIBXPDFDIR)/xpdf/libxpdf.a:
+ cd $(LIBXPDFDIR)/xpdf; $(MAKE) libxpdf.a
+$(LIBXPDFDIR)/goo/libGoo.a:
+ cd $(LIBXPDFDIR)/goo; $(MAKE) libGoo.a
+$(LIBXPDFDIR)/fofi/libfofi.a:
+ cd $(LIBXPDFDIR)/fofi; $(MAKE) libfofi.a
+$(GDDIR)/libgd.a:
+ cd $(GDDIR); $(MAKE) libgd.a
+$(FREETYPEDIR)/lib/.libs/libttf.a:
+ cd $(FREETYPEDIR); $(MAKE)
# Prevent GNU make v3 from overflowing arg limit on SysV.
.NOEXPORT: