~ubuntu-branches/ubuntu/utopic/texlive-bin/utopic

« back to all changes in this revision

Viewing changes to texk/web2c/pmplibdir/am/pmpost.am

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-05-07 10:47:49 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20120507104749-p00ot5sajjbkp1hp
Tags: 2011.20120507-1
* new upstream checkout: uptex 1.10
* drop patches for config file inclusion in (x)dvipdfmx, included upstream
* add man page for etex
* include pmpost patches and build it
* adapt/unfuzzify patches for current sources
* disable mtx building, we have prepmx package in Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## texk/web2c/pmplibdir/am/pmpost.am: Makefile fragment for MetaPost.
 
2
##
 
3
## Copyright (C) 2009-2011 Peter Breitenlohner <tex-live@tug.org>
 
4
## You may freely use, modify and/or distribute this file.
 
5
 
 
6
## pMetaPost
 
7
##
 
8
if PMP
 
9
bin_PROGRAMS += pmpost
 
10
bin_links += pmpost$(EXEEXT):pdvitomp
 
11
endif PMP
 
12
EXTRA_PROGRAMS += pmpost
 
13
 
 
14
pmpost_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/pmplibdir -I$(srcdir)/mplibdir $(PTEXENC_INCLUDES)
 
15
pmpost_LDADD = $(KPATHSEA_LIBS) -lm $(PTEXENC_LIBS)
 
16
 
 
17
 
 
18
.PHONY: install-pmpost-links uninstall-pmpost-links
 
19
 
 
20
# Creating one file: just one rule
 
21
pmp_ctangle = CWEBINPUTS=.:$(srcdir)/pmplibdir $(ctangle)
 
22
# Creating several files: need stamp file and two rules with identical recipes
 
23
pmp_ctangle_sh = CWEBINPUTS=.:$(srcdir)/pmplibdir $(SHELL) ./tangle-sh $@ $(CTANGLE)
 
24
 
 
25
## pMetaPost C sources
 
26
pmpost_SOURCES = mplibdir/avl.h mplibdir/avl.c
 
27
nodist_pmpost_SOURCES = pmpost.c $(pmpxout_c_h) $(pmp_c_h) $(pmpmath_c_h) $(ppsout_c_h) $(psvgout_c_h) ptfmin.c
 
28
pmpxout_c_h = pmpxout.c pmpxout.h
 
29
pmp_c_h =  pmp.c pmplib.h pmpmp.h
 
30
pmpmath_c_h = pmpmath.h pmpmath.c
 
31
ppsout_c_h = pmppsout.h ppsout.c pmplibps.h
 
32
psvgout_c_h = pmplibsvg.h pmpsvgout.h psvgout.c
 
33
pmp_sed = "s/mpxout\\.h/pmpxout.h/;s/mpmp\\.h/pmpmp.h/;s/mplib\\.h/pmplib.h/;s/mppsout\\.h/pmppsout.h/;s/mplibps\\.h/pmplibps.h/;s/mplibsvg\\.h/pmplibsvg.h/;s/mpsvgout\\.h/pmpsvgout.h/;s/mpmath\\.h/pmpmath.h/"
 
34
 
 
35
ptfmin.c: ctangle$(EXEEXT) mplibdir/tfmin.w
 
36
        cat $(srcdir)/mplibdir/tfmin.w | sed $(pmp_sed) > ptfmin.w
 
37
        $(pmp_ctangle) ptfmin.w jfm.ch
 
38
pmpost.c: ctangle$(EXEEXT) mplibdir/mpost.w
 
39
        cat $(srcdir)/mplibdir/mpost.w | sed $(pmp_sed) > pmpost.w
 
40
        $(pmp_ctangle) pmpost.w pmpost.ch
 
41
$(pmp_c_h): pmp-tangle
 
42
        @$(pmp_ctangle_sh) pmp.w jmp.ch
 
43
$(ppsout_c_h): ppsout-tangle
 
44
        @$(pmp_ctangle_sh) ppsout.w jmppsw.ch
 
45
$(pmpxout_c_h): pmpxout-tangle
 
46
        @$(pmp_ctangle_sh) pmpxout pdvitomp.ch
 
47
pmp-tangle: ctangle$(EXEEXT) mplibdir/mp.w tangle-sh
 
48
        cat $(srcdir)/mplibdir/mp.w | sed $(pmp_sed) > pmp.w
 
49
        @$(pmp_ctangle_sh) pmp.w jmp.ch
 
50
ppsout-tangle: ctangle$(EXEEXT) mplibdir/psout.w tangle-sh
 
51
        cat $(srcdir)/mplibdir/psout.w | sed $(pmp_sed) > ppsout.w
 
52
        @$(pmp_ctangle_sh) ppsout.w jmppsw.ch
 
53
pmpxout-tangle: ctangle$(EXEEXT) mplibdir/mpxout.w tangle-sh
 
54
        cat $(srcdir)/mplibdir/mpxout.w | sed $(pmp_sed) > pmpxout.w
 
55
        @$(pmp_ctangle_sh) pmpxout pdvitomp.ch
 
56
 
 
57
$(psvgout_c_h): psvgout-tangle
 
58
        @$(pmp_ctangle_sh) psvgout.w psvgout.ch
 
59
psvgout-tangle: ctangle$(EXEEXT) mplibdir/svgout.w tangle-sh
 
60
        cat $(srcdir)/mplibdir/svgout.w | sed $(pmp_sed) > psvgout.w
 
61
        @$(pmp_ctangle_sh) psvgout.w psvgout.ch
 
62
$(pmpmath_c_h): pmpmath-tangle
 
63
        @$(pmp_ctangle_sh) pmpmath
 
64
pmpmath-tangle: ctangle$(EXEEXT) mplibdir/mpmath.w tangle-sh
 
65
        cat $(srcdir)/mplibdir/mpmath.w | sed $(pmp_sed) > pmpmath.w
 
66
        @$(pmp_ctangle_sh) pmpmath
 
67
 
 
68
 
 
69
## pMetaPost CWeb sources
 
70
pmpost_web = mplibdir/mpost.w mplibdir/mpxout.w 
 
71
pmpost_web += mplibdir/mp.w mplibdir/psout.w mplibdir/svgout.w 
 
72
pmpost_web += mplibdir/mpmath.w mplibdir/tfmin.w
 
73
 
 
74
 
 
75
$(pmpost_OBJECTS): $(nodist_pmpost_SOURCES)
 
76
 
 
77
DISTCLEANFILES += $(nodist_pmpost_SOURCES)
 
78