Initial release of Maemo 5 port of gnuplot
[gnuplot] / term / Makefile.am
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
2 AUTOMAKE_OPTIONS = foreign 1.2h
3
4 EXTRA_DIST = README Makefile.am.in compact.c driver.h impcodes.h \
5 object.h post.h $(CORETERM) PostScript
6
7 # List of terminal drivers; must be created
8 # prior to running automake
9 ##trm-files-begin
10 CORETERM = aed.trm ai.trm amiga.trm apollo.trm aquaterm.trm atariaes.trm \
11 atarivdi.trm be.trm cgi.trm cgm.trm corel.trm debug.trm djsvga.trm \
12 dumb.trm dxf.trm dxy.trm eepic.trm emf.trm emxvga.trm epson.trm \
13 estimate.trm excl.trm fg.trm fig.trm gd.trm ggi.trm gnugraph.trm gpic.trm \
14 gpr.trm grass.trm hp2648.trm hp26.trm hp500c.trm hpgl.trm hpljii.trm \
15 hppj.trm imagen.trm iris4d.trm kyo.trm latex.trm linux.trm mac.trm \
16 metafont.trm metapost.trm mgr.trm mif.trm multitos.trm next.trm \
17 openstep.trm pbm.trm pc.trm pdf.trm pm.trm post.trm pslatex.trm \
18 pstricks.trm qms.trm regis.trm rgip.trm sun.trm svg.trm t410x.trm tek.trm \
19 texdraw.trm tgif.trm tkcanvas.trm tpic.trm unixpc.trm unixplot.trm \
20 v384.trm vgagl.trm vws.trm win.trm wxt.trm x11.trm xlib.trm 
21 ##trm-files-end
22
23 postscriptdir = $(pkgdatadir)/$(VERSION_MAJOR)/PostScript
24 postscript_DATA = PostScript/8859-15.ps PostScript/8859-1.ps\
25         PostScript/8859-2.ps PostScript/cp1250.ps PostScript/cp437.ps\
26         PostScript/cp850.ps PostScript/cp852.ps PostScript/koi8r.ps PostScript/koi8u.ps\
27         PostScript/prologue.ps
28
29 Makefile.am: Makefile.am.in
30         rm -f $@ $@t
31         sed -n '1,/^##trm-files-begin/p' Makefile.am.in > $@t
32         echo CORETERM = *.trm | fmt | (tr '\012' @; echo) \
33           |sed 's/@$$/%/;s/@/ \\@/g' | tr @% '\012 ' \
34           >> $@t
35         sed -n '/^##trm-files-end/,$$p' Makefile.am.in >> $@t
36         chmod a-w $@t
37         mv $@t $@
38