aboutsummaryrefslogtreecommitdiff
path: root/perl/Makefile
diff options
context:
space:
mode:
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