Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
debian
tor
Commits
62127269
Commit
62127269
authored
15 years ago
by
Peter Palfrader
Browse files
Options
Downloads
Patches
Plain Diff
Build manpage using make logic and not using a for loop to work properly with make -j NN
parent
3d44dd2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/rules
+10
-9
10 additions, 9 deletions
debian/rules
with
10 additions
and
9 deletions
debian/rules
+
10
−
9
View file @
62127269
...
...
@@ -85,19 +85,20 @@ config.status: configure
build
:
build-stamp
build-stamp
:
config.status
dh_testdir
!
[
debian/micro-revision.i
]
||
cp
debian/micro-revision.i src/or/micro-revision.i
# create the manpages because the build-system shipped in the tarball is
# incomplete. moving foo.8 to foo.1.in is intended.
for
manpage
in
$(MANPAGE_INS);
do
\
base
=
"
$${
manpa
ge%%.1.in
}
"
;
\
# create the manpages
here
because the build-system shipped in the tarball is
# incomplete. moving foo.8 to foo.1.in is intended.
doc/%.1.in
:
doc/%.1.txt
target
=
"
$@
"
;
base
=
"
$${
tar
ge
t
%%.1.in
}
"
;
\
a2x
-f
manpage
"
$$
base"
.1.txt
&&
\
if
[
-e
"
$$
base"
.1
]
;
then
mv
"
$$
base"
.1
"
$$
base"
.1.in
;
\
elif
[
-e
"
$$
base"
.8
]
;
then
mv
"
$$
base"
.8
"
$$
base"
.1.in
;
\
else
echo
>
&2
"No output produced by a2px?"
&&
exit
1
;
fi
||
exit
1
;
\
done
else
echo
>
&2
"No output produced by a2px?"
&&
exit
1
;
fi
build-stamp
:
config.status $(MANPAGE_INS)
dh_testdir
!
[
debian/micro-revision.i
]
||
cp
debian/micro-revision.i src/or/micro-revision.i
# Also touch all the .html files or else the build system will
# try to re-create them and fail badly
for
file
in
$(MANPAGE_INS);
do
touch
$${file%%.1.in}.html.in
||
exit
1;
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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