Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
2fbdd2d9
Commit
2fbdd2d9
authored
Apr 23, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/Makefile: use multiple input, general cleanup
parent
210ae84c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
37 deletions
+19
-37
Makefile
doc/Makefile
+19
-37
No files found.
doc/Makefile
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
...
...
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