File: Make.debian

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (115 lines) | stat: -rw-r--r-- 2,518 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
SHELL = /bin/sh

include ../Path.incl
include ../Version.incl
include ../Makefile.incl

IP = $(SCIDIR)/Path.incl
IV = $(SCIDIR)/Version.incl

SBIN = $(SCIDIR)/bin
UTIL = $(SCIDIR)/util

MYSCIDIR = /usr/lib/scilab

PROGRAMS = $(SBIN)/scilab $(SBIN)/Blatexpr $(SBIN)/Blatexpr2 \
	$(SBIN)/Blatexprs $(SBIN)/Blpr $(SBIN)/BEpsf \
	$(UTIL)/Blatdoc $(UTIL)/Blatdocs

all:: $(PROGRAMS)

pipo:
	$(RM) $(PROGRAMS)

world: all

$(SBIN)/scilab: scilab.g $(IP) $(IV)
	@$(RM) $(SBIN)/scilab
	@sed -e "s+SCILAB_DIRECTORY+$(MYSCIDIR)+" \
	-e "s+SCILAB_VERSION+$(SCIVERSION)+" \
	-e "s+SCILABGS+sh+" scilab.g > scilab;
	@cp scilab $(SBIN)
	@chmod 775 $(SBIN)/scilab
	@$(RM) scilab
	@echo $(SBIN)/scilab created

distclean::
	$(RM) $(SBIN)/scilab

$(SBIN)/Blatexpr: Blatexpr.g $(IP)
	@$(RM) $(SBIN)/Blatexpr
	@sed -e "s+SCILAB_DIRECTORY+$(MYSCIDIR)+" Blatexpr.g > Blatexpr;
	@cp Blatexpr $(SBIN)
	@chmod 775 $(SBIN)/Blatexpr
	@$(RM) Blatexpr
	@echo $(SBIN)/Blatexpr created

distclean::
	$(RM) $(SBIN)/Blatexpr

$(SBIN)/BEpsf: BEpsf.g $(IP)
	@$(RM) $(SBIN)/BEpsf
	@sed -e "s+SCILAB_DIRECTORY+$(MYSCIDIR)+" BEpsf.g > BEpsf;
	@cp BEpsf $(SBIN)
	@chmod 775 $(SBIN)/BEpsf
	@$(RM) BEpsf
	@echo $(SBIN)/BEpsf created

distclean::
	$(RM) $(SBIN)/BEpsf


$(SBIN)/Blatexpr2: Blatexpr2.g $(IP)
	@$(RM) $(SBIN)/Blatexpr2
	@sed -e "s+SCILAB_DIRECTORY+$(MYSCIDIR)+" Blatexpr2.g > Blatexpr2;
	@cp Blatexpr2 $(SBIN)
	@chmod 775 $(SBIN)/Blatexpr2
	@$(RM) Blatexpr2
	@echo $(SBIN)/Blatexpr2 created

distclean::
	$(RM) $(SBIN)/Blatexpr2

$(SBIN)/Blatexprs: Blatexprs.g $(IP)
	@$(RM) $(SBIN)/Blatexprs
	@sed -e "s+SCILAB_DIRECTORY+$(MYSCIDIR)+" Blatexprs.g > Blatexprs;
	@cp Blatexprs $(SBIN)
	@chmod 775 $(SBIN)/Blatexprs
	@$(RM) Blatexprs
	@echo $(SBIN)/Blatexprs created

distclean::
	$(RM) $(SBIN)/Blatexprs

$(SBIN)/Blpr: Blpr.g $(IP)
	@$(RM) $(SBIN)/Blpr
	@sed -e "s+SCILAB_DIRECTORY+$(MYSCIDIR)+" Blpr.g > Blpr;
	@cp Blpr $(SBIN)
	@chmod 775 $(SBIN)/Blpr
	@$(RM) Blpr
	@echo $(SBIN)/Blpr created

distclean::
	$(RM) $(SBIN)/Blpr

$(UTIL)/Blatdoc: Blatdoc.g $(IP)
	@$(RM) $(UTIL)/Blatdoc
	@sed -e "s+SCILAB_DIRECTORY+$(MYSCIDIR)+" Blatdoc.g > Blatdoc;
	@cp Blatdoc $(UTIL)
	@chmod 775 $(UTIL)/Blatdoc
	@$(RM) Blatdoc
	@echo $(UTIL)/Blatdoc created

distclean::
	$(RM) $(UTIL)/Blatdoc

$(UTIL)/Blatdocs: Blatdocs.g $(IP)
	@$(RM) $(UTIL)/Blatdocs
	@sed -e "s+SCILAB_DIRECTORY+$(MYSCIDIR)+" Blatdocs.g > Blatdocs;
	@cp Blatdocs $(UTIL)
	@chmod 775 $(UTIL)/Blatdocs
	@$(RM) Blatdocs
	@echo $(UTIL)/Blatdocs created

distclean::
	$(RM) $(UTIL)/Blatdocs