Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b4b2bd4c
Commit
b4b2bd4c
authored
Jul 29, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
4b71ce39
267f67d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
22 deletions
+37
-22
Documentation/DocBook/Makefile
Documentation/DocBook/Makefile
+16
-20
Rules.make
Rules.make
+19
-0
scripts/fixdep.c
scripts/fixdep.c
+2
-2
No files found.
Documentation/DocBook/Makefile
View file @
b4b2bd4c
...
@@ -88,9 +88,9 @@ IMG-parportbook := parport-share.fig parport-multi.fig parport-structure.fig
...
@@ -88,9 +88,9 @@ IMG-parportbook := parport-share.fig parport-multi.fig parport-structure.fig
IMG-parportbook2
:=
$(
addprefix
Documentation/DocBook/,
$
(
IMG-parportbook
))
IMG-parportbook2
:=
$(
addprefix
Documentation/DocBook/,
$
(
IMG-parportbook
))
EPS-parportbook
:=
$(
patsubst
%.fig,%.eps,
$
(
IMG-parportbook2
))
EPS-parportbook
:=
$(
patsubst
%.fig,%.eps,
$
(
IMG-parportbook2
))
PNG-parportbook
:=
$(
patsubst
%.fig,%.png,
$
(
IMG-parportbook2
))
PNG-parportbook
:=
$(
patsubst
%.fig,%.png,
$
(
IMG-parportbook2
))
Documentation/DocBook/parportbook.
ps
:
$(EPS
-parportbook)
Documentation/DocBook/parportbook.
html
:
$(PNG
-parportbook)
Documentation/DocBook/parportbook.
html
Documentation/DocBook/parportbook.pdf
:
\
Documentation/DocBook/parportbook.
ps
Documentation/DocBook/parportbook.pdf
:
\
$(
PNG
-parportbook)
$(
EPS
-parportbook)
###
###
# Rules to generate postscript, PDF and HTML
# Rules to generate postscript, PDF and HTML
...
@@ -99,48 +99,44 @@ Documentation/DocBook/parportbook.html Documentation/DocBook/parportbook.pdf:\
...
@@ -99,48 +99,44 @@ Documentation/DocBook/parportbook.html Documentation/DocBook/parportbook.pdf:\
@
(
which db2ps
>
/dev/null 2>&1
)
||
\
@
(
which db2ps
>
/dev/null 2>&1
)
||
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
exit
1
)
exit
1
)
@
echo
' DB2PS $@'
$(
call
do_cmd,DB2PS
$@
,db2ps
-o
$(
dir
$@
)
$<
)
@
db2ps
-o
$(
dir
$@
)
$<
%.pdf
:
%.sgml
%.pdf
:
%.sgml
@
(
which db2pdf
>
/dev/null 2>&1
)
||
\
@
(
which db2pdf
>
/dev/null 2>&1
)
||
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
exit
1
)
exit
1
)
@
echo
' DB2PDF $@'
$(
call
do_cmd,DB2PDF
$@
,db2pdf
-o
$(
dir
$@
)
$<
)
@
db2pdf
-o
$(
dir
$@
)
$<
%.html
:
%.sgml
%.html
:
%.sgml
@
(
which db2html
>
/dev/null 2>&1
)
||
\
@
(
which db2html
>
/dev/null 2>&1
)
||
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
(
echo
"*** You need to install DocBook stylesheets ***"
;
\
exit
1
)
exit
1
)
@
rm
-rf
$@
$(
patsubst
%.html,%,
$@
)
@
rm
-rf
$@
$(
patsubst
%.html,%,
$@
)
@
echo
' DB2HTML $@'
$(
call
do_cmd,DB2HTML
$@
,db2html
-o
$(
patsubst
%.html,%,
$@
)
$<
&&
\
@
db2html
-o
$(
patsubst
%.html,%,
$@
)
$<
&&
\
echo
'<a HREF="
$(
patsubst
%.html,%,
$(
notdir
$@
))
/book1.html">\
echo
'<a HREF="
$(
patsubst
%.html,%,
$(
notdir
$@
))
/book1.html">\
Goto
$(
patsubst
%.html,%,
$(
notdir
$@
))
</a><p>'
>
$@
Goto
$(
patsubst
%.html,%,
$(
notdir
$@
))
</a><p>'
>
$@
)
@
if
[
!
-z
"
$
(PNG-
$(
basename
$(
notdir
$@
))
)"
]
;
then
\
@
if
[
!
-z
"
$
(PNG-
$(
basename
$(
notdir
$@
))
)"
]
;
then
\
cp
$
(
PNG-
$(
basename
$(
notdir
$@
))
)
$(
patsubst
%.html,%,
$@
)
;
fi
cp
$
(
PNG-
$(
basename
$(
notdir
$@
))
)
$(
patsubst
%.html,%,
$@
)
;
fi
###
###
# Rules to generate postscripts and PNG imgages from .fig format files
# Rules to generate postscripts and PNG imgages from .fig format files
%.eps
:
%.fig
%.eps
:
%.fig
@
echo
' FIG2DEV -Leps $@'
$(
call
do_cmd,FIG2DEV
-Leps
$@
,fig2dev
-Leps
$<
$@
)
@
fig2dev
-Leps
$<
$@
%.png
:
%.fig
%.png
:
%.fig
@
echo
' FIG2DEV -Lpng $@'
$(
call
do_cmd,FIG2DEV
-Lpng
$@
,fig2dev
-Lpng
$<
$@
)
fig2dev
-Lpng
$<
$@
###
###
# Rule to convert a .c file to inline SGML documentation
# Rule to convert a .c file to inline SGML documentation
%.sgml
:
%.c
%.sgml
:
%.c
@
echo
' Generating $@'
@
echo
' Generating $@'
@
echo
"<programlisting>"
>
$@
@
(
\
@
expand
--tabs
=
8 <
$<
|
\
echo
"<programlisting>"
;
\
sed
-e
"s/&/
\\
&/g"
\
expand
--tabs
=
8 <
$<
|
\
-e
"s/</
\\
</g"
\
sed
-e
"s/&/
\\
&/g"
\
-e
"s/>/
\\
>/g"
>>
$@
-e
"s/</
\\
</g"
\
@
echo
"</programlisting>"
>>
$@
-e
"s/>/
\\
>/g"
;
\
echo
"</programlisting>"
)
>
$@
###
###
# Help targets as used by the top-level makefile
# Help targets as used by the top-level makefile
...
...
Rules.make
View file @
b4b2bd4c
...
@@ -553,3 +553,22 @@ if_changed_rule = $(if $(strip $? \
...
@@ -553,3 +553,22 @@ if_changed_rule = $(if $(strip $? \
# If quiet is set, only print short version of command
# If quiet is set, only print short version of command
cmd
=
@
$(
if
$
(
$(quiet)
cmd_
$(1)
)
,echo
' $(
$(quiet)
cmd_
$(1)
)
'
&&
)
$
(
cmd_
$(1)
)
cmd
=
@
$(
if
$
(
$(quiet)
cmd_
$(1)
)
,echo
' $(
$(quiet)
cmd_
$(1)
)
'
&&
)
$
(
cmd_
$(1)
)
# do_cmd is a shorthand used to support both compressed, verbose
# and silent output in a single line.
# Compared to cmd described avobe, do_cmd does no rely on any variables
# previously assigned a value.
#
# Usage $(call do_cmd,CMD $@,cmd_to_execute bla bla)
# Example:
# $(call do_cmd,CP $@,cp -b $< $@)
# make -s => nothing will be printed
# make KBUILD_VERBOSE=1 => cp -b path/to/src.file path/to/dest.file
# make KBUILD_VERBOSE=0 => CP path/to/dest.file
define
do_cmd
@$(if
$(filter
quiet_,$(quiet)),
echo
' $(1)'
&&,
$(if
$(filter
silent_,$(quiet)),,
echo
"$(2)"
&&))
\
$(2)
endef
scripts/fixdep.c
View file @
b4b2bd4c
...
@@ -213,7 +213,7 @@ void use_config(char *m, int slen)
...
@@ -213,7 +213,7 @@ void use_config(char *m, int slen)
void
parse_config_file
(
char
*
map
,
size_t
len
)
void
parse_config_file
(
char
*
map
,
size_t
len
)
{
{
int
*
end
=
(
int
*
)
(
map
+
len
);
int
*
end
=
(
int
*
)
(
map
+
len
);
/
/ start at +1, so that p can never be < map
/
* start at +1, so that p can never be < map */
int
*
m
=
(
int
*
)
map
+
1
;
int
*
m
=
(
int
*
)
map
+
1
;
char
*
p
,
*
q
;
char
*
p
,
*
q
;
...
@@ -283,7 +283,7 @@ void do_config_file(char *filename)
...
@@ -283,7 +283,7 @@ void do_config_file(char *filename)
void
parse_dep_file
(
void
*
map
,
size_t
len
)
void
parse_dep_file
(
void
*
map
,
size_t
len
)
{
{
char
*
m
=
map
;
char
*
m
=
map
;
char
*
end
=
m
ap
+
len
;
char
*
end
=
m
+
len
;
char
*
p
;
char
*
p
;
char
s
[
PATH_MAX
];
char
s
[
PATH_MAX
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment