]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use the C++ header file generated by bison instead of opting for a C header file 13164/head
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 22 Aug 2023 14:50:00 +0000 (16:50 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Mon, 28 Aug 2023 21:31:11 +0000 (23:31 +0200)
modules/bindbackend/Makefile.am
pdns/Makefile.am
pdns/bindlexer.l

index 58663f50b900dbcf06ceeebffba60f236a4945bb..7906e2078cb90d8c163975cd67eee3a94725083e 100644 (file)
@@ -19,7 +19,3 @@ libbindbackend_la_SOURCES = \
        binddnssec.cc
 
 libbindbackend_la_LDFLAGS = -module -avoid-version
-
-# for bindparser.h/hh
-.hh.h:
-       cp $< $@
index 43a464f8ab968791b0892faf0064b0fb78843ffd..7b4436ef57fa6f1cc087c6ddd19303c0b42aa547 100644 (file)
@@ -55,7 +55,7 @@ EXTRA_DIST = \
        dnsmessage.proto \
        mtasker.cc \
        inflighter.cc \
-       bindparser.h \
+       bindparser.hh \
        named.conf.parsertest \
        pdns.service.in \
        ixfrdist.service.in \
@@ -71,7 +71,7 @@ EXTRA_DIST = \
 
 BUILT_SOURCES = \
        bind-dnssec.schema.sqlite3.sql.h \
-       bindparser.h \
+       bindparser.hh \
        dnslabeltext.cc \
        apidocfiles.h
 
@@ -1676,11 +1676,7 @@ dnslabeltext.cc: dnslabeltext.rl
 bind-dnssec.schema.sqlite3.sql.h: bind-dnssec.schema.sqlite3.sql
        ( echo '#pragma once'; echo 'static char sqlCreate[] __attribute__((unused))=' ; sed 's/$$/"/g' $< | sed 's/^/"/g'  ; echo ';' ) > $@
 
-# for bindparser.h/hh
-.hh.h:
-       cp $< $@
-
-bindlexer.$(OBJEXT): bindparser.h
+bindlexer.$(OBJEXT): bindparser.hh
 
 pdns_recursor rec_control:
        @echo "Please build the recursor from the recursordist/ dir"
index 85cc0c6ef0e9f78778d6474c30553d6a36c8ba48..65dfc4da02ca94d5f86d15c09916ee16f09f2fed 100644 (file)
@@ -7,7 +7,7 @@
 #define YY_NO_INPUT 1
 #define YYSTYPE char *
 
-#include "bindparser.h"
+#include "bindparser.hh"
 
 int linenumber;
 #define MAX_INCLUDE_DEPTH 10