summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-07 17:15:00 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-07 17:36:04 +0100
commit7fab23e237b36a7ca2df6f34eb5febe4c851db42 (patch)
tree205de677f6adc2fe4d1f42e9bc12ef9f13220cc4
parent764d90597a2ef9f5f5a5041993b728e020fb08b0 (diff)
downloadguix-7fab23e237b36a7ca2df6f34eb5febe4c851db42.tar.gz
Install header files
-rw-r--r--Makefile.config.in1
-rw-r--r--local.mk2
2 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.config.in b/Makefile.config.in
index f5f813b2c0..5524ea3ad8 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -17,6 +17,7 @@ docbookrng = @docbookrng@
 docbookxsl = @docbookxsl@
 docdir = @docdir@
 exec_prefix = @exec_prefix@
+includedir = @includedir@
 libdir = @libdir@
 libexecdir = @libexecdir@
 localstatedir = @localstatedir@
diff --git a/local.mk b/local.mk
index 5cdba4d332..318710479c 100644
--- a/local.mk
+++ b/local.mk
@@ -5,3 +5,5 @@ 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)))