about summary refs log tree commit diff
path: root/third_party/nix/local.mk
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/local.mk')
-rw-r--r--third_party/nix/local.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/nix/local.mk b/third_party/nix/local.mk
new file mode 100644
index 000000000000..4b380176f2ec
--- /dev/null
+++ b/third_party/nix/local.mk
@@ -0,0 +1,12 @@
+ifeq ($(MAKECMDGOALS), dist)
+  dist-files += $(shell cat .dist-files)
+endif
+
+dist-files += configure config.h.in nix.spec perl/configure
+
+clean-files += Makefile.config
+
+GLOBAL_CXXFLAGS += -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr -I src/nix
+
+$(foreach i, config.h $(call rwildcard, src/lib*, *.hh), \
+  $(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))