diff options
Diffstat (limited to 'local.mk')
-rw-r--r-- | local.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/local.mk b/local.mk new file mode 100644 index 000000000000..f27a97cd4f08 --- /dev/null +++ b/local.mk @@ -0,0 +1,11 @@ +ifeq ($(MAKECMDGOALS), dist) + dist-files += $(shell git ls-files) $(shell git ls-files) +endif + +dist-files += configure config.h.in nix.spec + +GLOBAL_CXXFLAGS += -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr + +$(foreach i, config.h $(call rwildcard, src/lib*, *.hh), $(eval $(call install-file-in, $(i), $(includedir)/nix, 0644))) + +$(foreach i, config.h $(call rwildcard, src/boost, *.hpp), $(eval $(call install-file-in, $(i), $(includedir)/nix/$(patsubst src/%/,%,$(dir $(i))), 0644))) |