PDNS_ENABLE_SANITIZERS
PDNS_ENABLE_MALLOC_TRACE
+# Test if the pdns/dnsdistdist/html directory exists, so `make dnsdist` from the
+# repo root can still work.
+AM_CONDITIONAL([HAVE_DNSDISTDISTHTML], [test -d $srcdir/pdns/dnsdistdist/html])
+
AC_SUBST(LIBS)
AC_SUBST([AM_CPPFLAGS],
BUILT_SOURCES = \
bind-dnssec.schema.sqlite3.sql.h \
- bindparser.h htmlfiles.h
+ bindparser.h
CLEANFILES = \
*.gcda \
calidns \
dnsbulktest \
dnsdemog \
- dnsdist \
dnsgram \
dnsreplay \
dnsscan \
$(MBEDTLS_LIBS) \
$(BOOST_PROGRAM_OPTIONS_LIBS)
-dnsdist_SOURCES = \
+if HAVE_DNSDISTDISTHTML
+BUILT_SOURCES += htmlfiles.h
+EXTRA_PROGRAMS += dnsdist
+
+nodist_dnsdist_SOURCES = \
base32.cc \
base64.hh \
dns.cc \
$(YAHTTP_LIBS) \
$(LIBSODIUM_LIBS)
+htmlfiles.h: $(srcdir)/dnsdistdist/html/*
+ $(srcdir)/dnsdistdist/incfiles $(srcdir)/dnsdistdist > $@
+endif
+
nsec3dig_SOURCES = \
base32.cc \
base64.cc base64.hh \
dnslabeltext.cc: dnslabeltext.rl
$(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc
-htmlfiles.h: $(srcdir)/dnsdistdist/html/*
- $(srcdir)/dnsdistdist/incfiles $(srcdir)/dnsdistdist > $@
-
bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
( echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g' ; echo ';' ) > $@