Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'make distcheck' #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ else
AM_CFLAGS = -Wall -O
qperf_SOURCES = qperf.c socket.c rds.c support.c help.c qperf.h
endif
EXTRA_DIST = help.txt mkman mkhelp

man_MANS = qperf.1

qperf.1: help.txt
./mkman >qperf.1
qperf.1: $(srcdir)/help.txt
srcdir=$(srcdir) $(srcdir)/mkman >qperf.1

help.c: help.txt
help.c: $(srcdir)/help.txt
if RDMA
./mkhelp RDMA
srcdir=$(srcdir) $(srcdir)/mkhelp RDMA
else
./mkhelp
srcdir=$(srcdir) $(srcdir)/mkhelp
endif

clean-local:
Expand Down
9 changes: 7 additions & 2 deletions src/mkhelp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ use strict;
use warnings;
use diagnostics;

my $help_txt = "help.txt";
my $help_c = "help.c";
my $src_dir = '.';
if (exists $ENV{'srcdir'}) {
$src_dir = $ENV{'srcdir'};
}

my $help_txt = "$src_dir/help.txt";
my $help_c = "$src_dir/help.c";
my $top = "
/*
* This was generated from $help_txt. Do not modify directly.
Expand Down
7 changes: 6 additions & 1 deletion src/mkman
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ use diagnostics;
use POSIX;


my $help_txt = "help.txt";
my $src_dir = '.';
if (exists $ENV{'srcdir'}) {
$src_dir = $ENV{'srcdir'};
}

my $help_txt = "$src_dir/help.txt";


# Print out an error message and exit.
Expand Down