Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
2c976ec7
Commit
2c976ec7
authored
May 27, 2013
by
Ondřej Surý
Committed by
Ondřej Surý
May 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix make distcheck (up until uninstall check)
Change-Id: I0a963766fa4b4494e7eca53a6edd613632f6cbe1
parent
a30d6475
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
23 deletions
+38
-23
Makefile.am
Makefile.am
+1
-0
doc/Makefile.am
doc/Makefile.am
+13
-9
resource.sh
resource.sh
+4
-4
samples/Makefile.am
samples/Makefile.am
+3
-3
src/Makefile.am
src/Makefile.am
+16
-6
src/tests/knot/conf_tests.c
src/tests/knot/conf_tests.c
+1
-1
No files found.
Makefile.am
View file @
2c976ec7
ACLOCAL_AMFLAGS
=
-I
m4
SUBDIRS
=
src samples doc man
EXTRA_DIST
=
resource.sh
doc/Makefile.am
View file @
2c976ec7
info_TEXINFOS
=
knot.texi
knot_TEXINFOS
=
\
introduction.texi
\
requirements.texi
\
installation.texi
\
configuration.texi
\
reference.texi
\
security.texi
\
troubleshooting.texi
\
migration.texi
knot_TEXINFOS
=
\
configuration.texi
\
indices.texi
\
installation.texi
\
introduction.texi
\
knot.texi
\
migration.texi
\
reference.texi
\
requirements.texi
\
running.texi
\
security.texi
\
troubleshooting.texi
\
version.texi
resource.sh
View file @
2c976ec7
...
...
@@ -15,12 +15,12 @@ hd="hexdump -v -e"
fmt
=
"
\"
0
\"
\"
x
\"
1/1
\"
%02X
\"
\"
,
\"
"
# Preparse source file name
header
=
"
${
1
%.*
}
_rc"
header
=
`
basename
${
header
}
`
#
header="${1%.*}_rc"
header
=
$(
basename
${
1
}
_rc
)
# Get file size and dump content
size
=
`
wc
-c
${
1
}
|
awk
'{print $1}'
2>/dev/null
`
dump
=
`
${
hd
}
"
${
fmt
}
"
${
1
}
2>/dev/null
`
size
=
$(
wc
-c
"
${
1
}
"
|
awk
'{print $1}'
2>/dev/null
)
dump
=
$(
${
hd
}
"
${
fmt
}
"
"
${
1
}
"
2>/dev/null
)
# Format file size variable
echo
"static const unsigned
${
header
}
_size =
${
size
}
;"
...
...
samples/Makefile.am
View file @
2c976ec7
...
...
@@ -5,20 +5,20 @@ edit = sed \
-e
's|@prefix[@]|
$(prefix)
|g'
\
-e
's|@sysconfdir[@]|
$(sysconfdir)
|g'
knot.sample.conf
:
Makefile
knot.sample.conf
:
knot.sample.conf.in
rm
-f
$@
$@
.tmp
srcdir
=
''
;
\
test
-f
./
$@
.in
||
srcdir
=
$(srcdir)
/
;
\
$(edit)
$
${srcdir}$@
.in
>
$@
.tmp
mv
$@
.tmp
$@
knot.sample.conf
:
knot.sample.conf.in
EXTRA_DIST
=
knot.sample.conf.in example.com.zone
install-data-local
:
knot.sample.conf
[
-d
$(DESTDIR)
/
$(sysconfdir)
]
||
\
$(INSTALL)
-d
$(DESTDIR)
/
$(sysconfdir)
[
-f
$(DESTDIR)
/
$(sysconfdir)
/knot.sample.conf
]
||
\
$(INSTALL_DATA)
knot.sample.conf example.com.zone
$(DESTDIR)
/
$(sysconfdir)
$(INSTALL_DATA)
knot.sample.conf
$(srcdir)
/
example.com.zone
$(DESTDIR)
/
$(sysconfdir)
clean-local
:
rm
-f
knot.sample.conf
src/Makefile.am
View file @
2c976ec7
...
...
@@ -5,19 +5,25 @@ noinst_PROGRAMS = unittests unittests-xfr zscanner-tool
noinst_LTLIBRARIES
=
libknot.la libknotd.la libknots.la libzscanner.la
# $(YACC) will generate header file
AM_CFLAGS
=
-std
=
gnu99
-D_GNU_SOURCE
-Wall
-Ilibknot
-DSYSCONFDIR
=
'"
$(sysconfdir)
"'
-DSBINDIR
=
'"
$(sbindir)
"'
AM_CFLAGS
=
-std
=
gnu99
-D_GNU_SOURCE
-Wall
-I
$(top_srcdir)
/src/
libknot
-DSYSCONFDIR
=
'"
$(sysconfdir)
"'
-DSBINDIR
=
'"
$(sbindir)
"'
AM_YFLAGS
=
-d
libknotd_la_YFLAGS
=
-pcf_
-d
libknotd_la_LFLAGS
=
# TODO: reentrant parser, prefix
EXTRA_DIST
=
\
tests/files/sample_conf
\
zscanner/scanner.rl
\
zscanner/scanner_body.rl
BUILT_SOURCES
=
\
tests/sample_conf.rc
\
sample_conf.rc
\
libknotd_la-cf-lex.c
\
libknotd_la-cf-parse.c
\
libknotd_la-cf-parse.h
libknotd_la-cf-parse.h
\
zscanner/scanner.c
CLEANFILES
=
\
tests/sample_conf.rc
\
sample_conf.rc
\
libknotd_la-cf-lex.c
\
libknotd_la-cf-parse.c
\
libknotd_la-cf-parse.h
...
...
@@ -138,6 +144,7 @@ unittests_xfr_SOURCES = \
tests/xfr_tests.h
libknot_la_SOURCES
=
\
libknot/common.h
\
libknot/consts.h
\
libknot/consts.c
\
libknot/util/utils.c
\
...
...
@@ -206,6 +213,7 @@ libknot_la_SOURCES = \
libknots_la_SOURCES
=
\
common/slab/slab.c
\
common/slab/slab.h
\
common/slab/alloc-common.h
\
common/libtap/tap.c
\
common/libtap/tap.h
\
common/libtap/tap_unit.h
\
...
...
@@ -275,7 +283,9 @@ libknotd_la_SOURCES = \
knot/stat/stat.c
\
knot/stat/gatherer.h
\
knot/stat/stat.h
\
knot/stat/stat-common.h
\
knot/common.h
\
common/latency.h
\
knot/other/debug.h
\
knot/conf/cf-lex.l
\
knot/conf/cf-parse.y
\
...
...
@@ -349,5 +359,5 @@ unittests_LDADD = libknotd.la libknots.la @LIBOBJS@
unittests_xfr_LDADD
=
libknotd.la libknot.la libknots.la @LIBOBJS@
zscanner_tool_LDADD
=
libknots.la libknot.la libknotd.la libzscanner.la @LIBOBJS@
tests/
sample_conf.rc
:
tests/files/sample_conf
../resource.sh
tests/files/sample_conf
>
$@
sample_conf.rc
:
tests/files/sample_conf
$(top_srcdir)
/resource.sh
$(srcdir)
/
tests/files/sample_conf
>
$@
src/tests/knot/conf_tests.c
View file @
2c976ec7
...
...
@@ -20,7 +20,7 @@
#include "knot/conf/conf.h"
/* Resources. */
#include "
tests/
sample_conf.rc"
#include "sample_conf.rc"
static
int
conf_tests_count
(
int
argc
,
char
*
argv
[]);
static
int
conf_tests_run
(
int
argc
,
char
*
argv
[]);
...
...
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