FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gnuplot-old/src/Makefile.maint at pm3d · gnuplot/gnuplot-old · GitHub
gnuplot
gnuplot-old
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
gnuplot-old
/
src
/
Makefile.maint
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (37 loc) · 1.69 KB
Breadcrumbs
gnuplot-old
/
src
/
Makefile.maint
Copy path
File metadata and controls
45 lines (37 loc) · 1.69 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
-*-Makefile-*-
#
Makefile fragment to generate makefile.all and update version.c
#
Non-core sources and version.c
noncoresrc
= amiga.c ansi2knr.c bf_test.c corplot.c gplt_x11.c os9.c
\
strftime.c version.c vms.c
coresrc
:=
$(
filter-out
$(
noncoresrc
)
,
$(
wildcard
*
.c)
)
coreterm
:=
$(
shell
cd ../term && echo
*
.trm)
version
:=
$(
shell
cat ../VERSION)
patchlevel
:=
$(
shell
cat ../PATCHLEVEL)
date
:=
$(
shell
date)
makefile.all
: Makefile.maint
@echo
"
#
$@
generated automatically by GNU make
"
>
$@
t
@echo
>>
$@
t
@echo
'
# List of core object files except version.$$(O)
'
>>
$@
t
@echo COREOBJS =
$(
coresrc:.c=.'
$$(
O
)
'
)
\
|
fmt
|
(tr
'
\012
'
@
;
echo)
|
sed
'
s/@$$/%/;s/@/ \\@/g
'
\
|
tr @%
'
\012\012
'
>>
$@
t
@echo
"
# List of terminal driver sources
"
>>
$@
t
@echo CORETERM =
$(
patsubst
%
.trm,$$\(T\)
%.trm,
$(
coreterm
)
)
\
|
fmt
|
(tr
'
\012
'
@
;
echo)
|
sed
'
s/@$$/%/;s/@/ \\@/g
'
\
|
tr @%
'
\012\012
'
>>
$@
t
@if cmp -s
$@
$@
t
;
then
rm -f
$@
t
;
else
mv
$@
t
$@
;
fi
#
version.c: ../VERSION ../PATCHLEVEL Makefile.maint
#
@echo Making $@
#
@vn=`sed -n 's/.*gnuplot_version.*"\(.*\)".*/\1/p' ./version.c|tr -d ' '`;
\
# pl=`sed -n 's/.*gnuplot_patchlevel.*"\(.*\)".*/\1/p' ./version.c|tr -d ' '`;
\
# dt=`sed -n 's/.*gnuplot_date.*"\(.*\)".*/\1/p' ./version.c`;
\
# if [ "$(version)" != $$vn -o
\
# "$(patchlevel)" != $$pl -o
\
# "$$date" != "$$dt" ]; then
\
# sed -e '/^const char gnuplot_version/ s/"[^"]*"/"@VERS@"/'
\
# -e '/^const char gnuplot_patchlevel/ s/"[^"]*"/"@PLVL@"/'
\
# -e '/^const char gnuplot_date/ s/"[^"]*"/"@DATE@"/'
\
# -e "s/@VERS@/$(version)/" -e "s/@PLVL@/$(patchlevel)/"
\
# -e "s/@DATE@/$(date)/" $@ >$@t;
\
# if cmp -s $@ $@t; then rm -f $@t; else mv $@t $@; fi
\
# fi
Back
|
FazBrowse Home
|
New Git URL