aboutsummaryrefslogtreecommitdiff
path: root/perl/Makefile
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 04:01:54 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 04:36:42 +0100
commitfd1299cef399ec0c33e2b7416c63d78553dc3ced (patch)
tree08a99151470e625c961d44a81462504fbb4257ea /perl/Makefile
parent4517de00cb0a1cb096d163d9c422ac4f55e383ed (diff)
Merge pull request #9106 from Ericson2314/positive-source-filtering
Use positive source filtering for the standalone functional tests job and Perl bindings (cherry picked from commit 6b6bd9003062c86a49d4384381941cf57f269c45) Change-Id: I896be67654f893d543ed6beb5d0d0d6c6d36e027
Diffstat (limited to 'perl/Makefile')
-rw-r--r--perl/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/perl/Makefile b/perl/Makefile
index c2c95f255..832668dd1 100644
--- a/perl/Makefile
+++ b/perl/Makefile
@@ -1,6 +1,12 @@
makefiles = local.mk
-GLOBAL_CXXFLAGS += -g -Wall -std=c++2a -I ../src
+GLOBAL_CXXFLAGS += -g -Wall -std=c++2a
+
+# A convenience for concurrent development of Nix and its Perl bindings.
+# Not needed in a standalone build of the Perl bindings.
+ifneq ("$(wildcard ../src)", "")
+ GLOBAL_CXXFLAGS += -I ../src
+endif
-include Makefile.config