Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
99
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
2fbdd2d9
Commit
2fbdd2d9
authored
13 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
doc/Makefile: use multiple input, general cleanup
parent
210ae84c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/Makefile
+19
-37
19 additions, 37 deletions
doc/Makefile
with
19 additions
and
37 deletions
doc/Makefile
+
19
−
37
View file @
2fbdd2d9
...
...
@@ -4,71 +4,53 @@
# Copyright 1994,2000,2010,2011 Alessandro Rubini <rubini@linux.it>
#
#################
#
# BE CAREFUL in editing:
# due to the large number of index files, and my use of a non standard
# info input file, any file $(TARGET).* is removed by "make clean"
#
# I chose to use a prefix for the input file ("doc.$(TARGET)"), to ease
# makeing clean and applying my own rules.
#
###################################################################
TARGET
=
wrs-software
# Assume makeinfo can do images and --html.
# In any case, MAKEINFO can be specified on the commandline
MAKEINFO
=
makeinfo
##############################################
# There is not basenames here, all *.in are considered input
INPUT
=
$(
wildcard
*
.in
)
TEXI
=
$(
INPUT:.in
=
.texi
)
INFO
=
$(
INPUT:.in
=
.info
)
HTML
=
$(
INPUT:.in
=
.html
)
TXT
=
$(
INPUT:.in
=
.txt
)
PDF
=
$(
INPUT:.in
=
.pdf
)
.SUFFIXES
:
.in .texi .info .html .txt
ALL
=
$(
INFO
)
$(
HTML
)
$(
TXT
)
$(
PDF
)
.in.texi
:
MAKEINFO
?=
makeinfo
%.texi
:
%.in
@
rm
-f
$@
sed
-f
./infofilter
$<
>
$@
emacs
-batch
--no-site-file
-l
fixinfo
$@
chmod
-w
$@
# unfortuantely implicit rules are not concatenated, so force a make run
%.pdf
:
%.texi $(TEXI)
$(
MAKE
)
$(
TEXI
)
%.pdf
:
%.texi
texi2pdf
--batch
$<
%.info
:
%.texi $(TEXI)
$(
MAKE
)
$(
TEXI
)
%.info
:
%.texi
$(
MAKEINFO
)
$<
-o
$@
%.html
:
%.texi $(TEXI)
$(
MAKE
)
$(
TEXI
)
%.html
:
%.texi
$(
MAKEINFO
)
--html
--no-split
-o
$@
$<
%.txt
:
%.texi $(TEXI)
$(
MAKE
)
$(
TEXI
)
%.txt
:
%.texi
$(
MAKEINFO
)
--no-headers
$<
>
$@
##############################################
.PHONY
:
all images check terse clean install
.INTERMEDIATE
:
$(TEXI)
ALL
=
$(
TARGET
)
.info
$(
TARGET
)
.txt
$(
TARGET
)
.html
$(
TARGET
)
.pdf
all
:
images $(TEXI) $(ALL)
all
:
images $(ALL)
$(
MAKE
)
terse
images
::
if
[
-d
images
]
;
then
$(
MAKE
)
-C
images
||
exit
1
;
fi
info
:
$(TARGET).info
check
:
_err.ps
gs
-sDEVICE
=
linux
-r320x200x16
$<
terse
:
for
n
in
cp
fn ky pg toc tp vr
;
do
\
rm
-f
$(
TARGET
)
.
$$
n
;
\
done
for
n
in
cp
fn ky pg toc tp vr aux log
;
do
rm
-f
*
.
$$
n
;
done
rm
-f
*
~
clean
:
terse
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment