]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #9748 from kpfleming/avoid-removal-of-generated-files
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 11 Jan 2021 20:10:39 +0000 (21:10 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Jan 2021 20:10:39 +0000 (21:10 +0100)
Avoid accidental removal of generated files

1  2 
docs/Makefile.am
pdns/Makefile.am

Simple merge
index 5244f412bb0a919ad7137ecf05c462b4022bc602,f90a62a53ab7a2494fd737a10e2c14a7618bfc9a..d327e6fbfbad610bb5d53a97b8de584654bb32eb
@@@ -70,10 -70,17 +70,16 @@@ CLEANFILES = 
        backends/gsql/gsqlbackend.gcda \
        backends/gsql/gsqlbackend.gcno \
        backends/gsql/gsqlbackend.gcov \
 -      dnsmessage.pb.cc dnsmessage.pb.h \
        pdns.conf-dist \
-       apidocfiles.h \
+       apidocfiles.h
+ if !HAVE_API_SWAGGER_JSON
+ # don't clean these files if they were present
+ # at 'configure' time (e.g. from a source dist)
+ CLEANFILES += \
        api-swagger.yaml \
        api-swagger.json
+ endif
  
  # use a $(wildcard) wrapper here to allow build to proceed if output
  # file is present but input file is not (e.g. in a dist tarball)