File: install.in

package info (click to toggle)
plplot 5.3.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 26,248 kB
  • ctags: 11,687
  • sloc: ansic: 86,045; xml: 17,249; sh: 12,400; tcl: 8,113; cpp: 6,824; perl: 4,383; python: 3,915; makefile: 2,899; java: 2,788; fortran: 290; sed: 5; awk: 1
file content (85 lines) | stat: -rw-r--r-- 3,135 bytes parent folder | download | duplicates (4)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -----------------------------------------------------------------------
# $Id: install.in,v 1.2 1994/08/10 20:23:45 mjl Exp $
#
# Maurice LeBrun
# IFS, University of Texas at Austin
# 14-Jul-1994
#
# Make assignments and targets for installation under Unix.
#
# It is recommended that you use a dedicated directory such as
# /usr/local/plplot (read the FAQ on this topic).  The install directory
# will be created if necessary, as will subdirectories bin, doc, examples,
# include, lib, man (eventually), and tcl.
#
# Notes: 
#	if Tk support is not included, TK_INSTALL will be null.
#	if Tcl support is not included, TCL_INSTALL will be null.
#
# -----------------------------------------------------------------------

install: install_lib install_utils $(TCL_INSTALL) $(TK_INSTALL) install_demos

install_lib:
	-if not exist $(INCLUDE_DIR) mkdir $(INCLUDE_DIR)
	-if not exist $(LIB_DIR) mkdir $(LIB_DIR)
	-if not exist $(DOC_DIR) mkdir $(DOC_DIR)
	-if not exist $(BIN_DIR) mkdir $(BIN_DIR)
	-if not exist $(INFO_DIR) mkdir $(INFO_DIR)
	-copy ..\..\..\..\lib\libplplt.a $(LIB_DIR)
	-copy ..\..\..\..\lib\*.fnt $(LIB_DIR)
	-copy ..\..\..\..\lib\*.map $(LIB_DIR)
#	-echo $(LIB_DIR)
#	-echo $(LIB_DIR)\libplplt.a
	-$(RANLIB) $(LIB_DIR2)/libplplt.a
#	-cd ..\..\..\..
#	-for %i in (README README.1st Changes.log COPYRIGHTS FAQ ToDo mklinks) do copy %i $(DOC_DIR)
	copy ..\..\..\..\*.*  $(DOC_DIR)
	-if not exist $(DOC_DIR)\README.local do copy README.local $(DOC_DIR)
	-copy ..\..\..\..\doc\*.info $(INFO_DIR)
	-copy ..\..\..\..\scripts\pl*.* $(BIN_DIR)
#	-cd include
#	-for %i in (plplotP.h plplot.h plplotX.h plplotTK.h plevent.h plstream.h pdf.h tclMatrix.h) do copy %i $(INCLUDE_DIR)
	copy ..\..\..\..\include\*.h $(INCLUDE_DIR)

install_demos:
	-if not exist $(DEMOS_DIR) mkdir $(DEMOS_DIR)
	-if not exist $(DEMOS_DIR)\C mkdir $(DEMOS_DIR)\C
	-if not exist $(DEMOS_DIR)\f77 mkdir $(DEMOS_DIR)\f77
	-if not exist $(DEMOS_DIR)\tcl mkdir $(DEMOS_DIR)\tcl
	-if not exist $(DEMOS_DIR)\tk mkdir $(DEMOS_DIR)\tk
	-copy Makedemo $(DEMOS_DIR)\Makefile
	-copy $(DEMOS_DIR)\Makefile $(DEMOS_DIR)\C
	-copy $(DEMOS_DIR)\Makefile $(DEMOS_DIR)\f77
	-copy $(DEMOS_DIR)\Makefile $(DEMOS_DIR)\tk
	-copy ..\..\..\..\examples\C\*.* $(DEMOS_DIR)\C
	-copy ..\..\..\..\examples\f77\*.* $(DEMOS_DIR)\f77
	-copy ..\..\..\..\examples\tcl\*.* $(DEMOS_DIR)\tcl
	-copy ..\..\..\..\examples\tk\*.* $(DEMOS_DIR)\tk

install_utils:
	$(LDC) $(LDC_FLAGS) plrender$O $(LIB_INSTALL) \
		-o plrender$E $(LDC_LIBS)
	$(LDC) $(LDC_FLAGS) pltek$O $(LIB_INSTALL) \
		-o pltek$E $(LDC_LIBS)
	-strip plrender
	coff2exe plrender
	-strip pltek
	coff2exe pltek
	-copy plrender.exe $(BIN_DIR)
	-copy pltek.exe $(BIN_DIR)

install_tcl:
	$(LDC) $(LDC_FLAGS) pltcl$O $(LIB_INSTALL) \
		-o pltcl$E $(LDC_LIBS)
	-strip pltcl$E
	-cp pltcl$E $(BIN_DIR)

install_tk:
	-if [ ! -d $(TCL_DIR) ] ; then mkdir -p $(TCL_DIR); fi
	$(LDC) $(LDC_FLAGS) plserver$O $(LIB_INSTALL) \
		-o plserver$E $(LDC_LIBS)
	-strip plserver$E
	-cp plserver$E $(BIN_DIR)
	-cd ..\drivers\tk; cp *.tcl *.pal tclIndex $(TCL_DIR)