summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/am/bootstrap.am
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-04-28 08:56:01 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-04-28 08:56:01 +0000
commitfd52faff2d89c990d952356d440fb8624fb54d6f (patch)
tree4d01e51cb60b9909a183939c7462a3129289bed8 /Build/source/texk/web2c/am/bootstrap.am
parenta83875d097d98b2265fdfaa570b8a55628161ed1 (diff)
fix various build problems: -lsocket, -liconv, foo.exe vs. foo
git-svn-id: svn://tug.org/texlive/trunk@12834 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/am/bootstrap.am')
-rw-r--r--Build/source/texk/web2c/am/bootstrap.am55
1 files changed, 29 insertions, 26 deletions
diff --git a/Build/source/texk/web2c/am/bootstrap.am b/Build/source/texk/web2c/am/bootstrap.am
index a4dd05ccc80..9e27314160d 100644
--- a/Build/source/texk/web2c/am/bootstrap.am
+++ b/Build/source/texk/web2c/am/bootstrap.am
@@ -1,7 +1,10 @@
## texk/web2c/am/bootstrap.am: Makefile fragment for tangle and ctangle.
+##
+## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
+## You may freely use, modify and/or distribute this file.
-## Bootstrapping tangle requires making it with itself. We use the opportunity
-## to create an up-to-date tangleboot.p as well.
+# Bootstrapping tangle requires making it with itself. We use the opportunity
+# to create an up-to-date tangleboot.p as well.
bin_PROGRAMS += tangle
nodist_tangle_SOURCES = tangle.c tangle.h
tangle.c tangle.h: tangle-web2c
@@ -9,11 +12,10 @@ tangle-web2c: tangle.p
$(web2c) tangle
echo timestamp >$@
touch tangle.c tangle.h
-## tangle.p is a special case, since it is needed to compile itself. We
-## convert and compile the (distributed) tangleboot.p to make a tangle
-## which we use to make the other programs. We depend on tangleboot, even
-## though we might not use it.
-EXTRA_DIST += tangle.web tangle.ch
+# tangle.p is a special case, since it is needed to compile itself. We
+# convert and compile the (distributed) tangleboot.p to make a tangle
+# which we use to make the other programs. We depend on tangleboot, even
+# though we might not use it.
tangle.p: tangleboot$(EXEEXT) tangle.web tangle.ch
WEBINPUTS=.:$(srcdir) $(tangleboot) tangle tangle
tangle.web:
@@ -26,19 +28,20 @@ tangle.web:
@echo "In any case, you can get it from" >&2
@echo "ftp://ftp.tug.org/tex/web.tar.gz." >&2
false
+EXTRA_DIST += tangle.web tangle.ch
DISTCLEANFILES += tangle.c tangle.h tangle.p tangle-web2c
noinst_PROGRAMS += tangleboot
nodist_tangleboot_SOURCES = tangleboot.c tangleboot.h
-tangleboot.c tangleboot.h: stamp-tangle $(web2c_programs) $(web2c_common)
+tangleboot.c tangleboot.h: stamp-tangle $(web2c_depend)
$(web2c) tangleboot
-## tangleboot.p is in the distribution
-EXTRA_DIST += tangleboot.p
+# tangleboot.p is in the distribution
stamp-tangle: tangleboot.p
date >stamp-tangle
-## This is not run unless tangle.web or tangle.ch is changed.
-## Only try to run ./tangle if it actually exists, otherwise
-## just touch tangleboot.p and build tangle.
+EXTRA_DIST += tangleboot.p
+# This is not run unless tangle.web or tangle.ch is changed.
+# Only try to run ./tangle if it actually exists, otherwise
+# just touch tangleboot.p and build tangle.
tangleboot.p: tangle.web tangle.ch
if [ -r $(TANGLE) ] || [ -r $(TANGLE).exe ]; then \
$(tangle) tangle tangle; \
@@ -52,31 +55,31 @@ tangleboot.p: tangle.web tangle.ch
$(MAKE) $(AM_MAKEFLAGS) tangle$(EXEEXT)
DISTCLEANFILES += stamp-tangle tangleboot.c tangleboot.h
-## Bootstrapping ctangle requires making it with itself. We use the opportunity
-## to create an up-to-date ctangleboot.c and cwebboot.c as well.
+# Bootstrapping ctangle requires making it with itself. We use the opportunity
+# to create an up-to-date ctangleboot.c and cwebboot.c as well.
bin_PROGRAMS += ctangle
nodist_ctangle_SOURCES = ctangle.c cweb.c
-## ctangle.c is a special case, since it is needed to compile itself.
-## We depend on ctangleboot, even though we might not use it.
-EXTRA_DIST += cwebdir
-## We install man/cweb.man, not cwebdir/cweb.1
-## nodist_man_MANS += cwebdir/cweb.1
+# ctangle.c is a special case, since it is needed to compile itself.
+# We depend on ctangleboot, even though we might not use it.
ctangle.c: ctangleboot$(EXEEXT) cwebdir/ctangle.w cwebdir/ctang-w2c.ch
CWEBINPUTS=$(srcdir)/cwebdir $(ctangleboot) ctangle ctang-w2c
cweb.c: ctangleboot$(EXEEXT) cwebdir/common.w cwebdir/comm-w2c.ch
CWEBINPUTS=$(srcdir)/cwebdir $(ctangleboot) common comm-w2c cweb.c
+EXTRA_DIST += cwebdir
+## We install man/cweb.man, not cwebdir/cweb.1
+## nodist_man_MANS += cwebdir/cweb.1
DISTCLEANFILES += ctangle.c cweb.c
noinst_PROGRAMS += ctangleboot
nodist_ctangleboot_SOURCES = ctangleboot.c cwebboot.c
-## ctangleboot.c and cwebboot.c are in the distribution
-EXTRA_DIST += ctangleboot.c cwebboot.c
+# ctangleboot.c and cwebboot.c are in the distribution
stamp-ctangle: ctangleboot.c cwebboot.c
date >stamp-ctangle
-## This is not run unless one of the cwebdir/* files is changed.
-## Only try to run ./ctangle if it actually exists, otherwise
-## just touch ctangleboot.c and/or cwebboot.c and build ctangle.
-## We must serialize this.
+EXTRA_DIST += ctangleboot.c cwebboot.c
+# This is not run unless one of the cwebdir/* files is changed.
+# Only try to run ./ctangle if it actually exists, otherwise
+# just touch ctangleboot.c and/or cwebboot.c and build ctangle.
+# We must serialize this.
ctangleboot.c: cwebboot.c cwebdir/ctangle.w cwebdir/ctang-w2c.ch
if [ -r $(CTANGLE) ] || [ -r $(CTANGLE).exe ]; then \
CWEBINPUTS=$(srcdir)/cwebdir $(ctangle) ctangle ctang-w2c; \