File: Makefile.am

package info (click to toggle)
texlive-bin 2009-8
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 231,976 kB
  • ctags: 165,663
  • sloc: ansic: 1,113,212; cpp: 454,597; sh: 49,189; perl: 43,889; makefile: 15,564; python: 11,825; xml: 7,446; lisp: 6,494; asm: 4,361; lex: 3,571; java: 3,569; pascal: 2,487; yacc: 2,451; exp: 2,031; ruby: 2,012; ada: 1,681; objc: 1,362; cs: 879; sed: 519; csh: 47; tcl: 45; awk: 35
file content (65 lines) | stat: -rw-r--r-- 2,007 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
## Makefile.am for the TeX Live subdirectory libs/
##
## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
## Use 'aclocal --force' (for "computed m4_sinclude")
##
ACLOCAL_AMFLAGS = -I ../m4 --force

SUBDIRS = dummy . $(SUBLIBS)
DIST_SUBDIRS = dummy $(DIST_SUBLIBS)

# just in case a subdirectory has added directories
dist-hook:
	rm -rf `find $(distdir) -name .svn`

SUBLIBS_AUX = sublibsdir-configure sublibsdir-conf.args
noinst_DATA = $(SUBLIBS_AUX)

DISTCLEANFILES = $(noinst_DATA)

all-local: sublibs

.PHONY: sublibs
# We must configure all libs subdirs since 'make dist' needs the Makefile.
# For those not required for the current set of configure options
# we append '--disable-build' so they can skip tests that would
# fail because other libraries were not built.
#
# Sequentially configure and optionally build all libs subdirs;
# code inspired by automake's way to handle recursive targets.
sublibs: $(noinst_DATA)
	@failcom='exit 1'; \
	for f in x $$MAKEFLAGS; do \
	  case $$f in \
	    *=* | --[!k]*);; \
	    *k*) failcom='fail=yes';; \
	  esac; \
	done; \
	list='$(DIST_SUBLIBS)'; for sublibs in $$list; do \
	  if test ! -f $$sublibs/Makefile; then \
	    test -d $$sublibs || $(MKDIR_P) $$sublibs; \
	    cmd=`cat $(SUBLIBS_AUX) | sed "s,SUBLIBSDIR,$$sublibs,g"`; \
	    case " $(SUBLIBS) " in \
	      *" $$sublibs "*) skip=;; \
	      *) skip=' --disable-build';; \
	    esac; \
	    (cd $$sublibs && echo "=== configuring in $$sublibs (`pwd`)" && \
	      echo "make: running $(SHELL) $$cmd$$skip" && \
	      eval $(SHELL) $$cmd$$skip) && \
	    if test "x$$skip" = x; then \
	      echo "Making all in $$sublibs" && \
	      (cd $$sublibs && $(MAKE) $(AM_MAKEFLAGS) all); \
	    fi || eval $$failcom; \
	  fi; \
	done; test -z "$$fail"

sublibsdir-configure:
	@echo "make in ./dummy failed to create the file $@"
	exit 1

sublibsdir-conf.args:
	@echo "configure in ./dummy failed to create the file $@"
	exit 1