about summary refs log tree commit diff
path: root/local.mk
blob: 25957d92a659bb4c4f109f24eef61f650ff28cc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ifeq ($(MAKECMDGOALS), dist)
  dist-files += $(shell git ls-files)
endif

dist-files += configure config.h.in nix.spec

clean-files += Makefile.config

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) src/nix-store/serve-protocol.hh, \
  $(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))

$(foreach i, $(call rwildcard, src/boost, *.hpp), $(eval $(call install-file-in, $(i), $(includedir)/nix/$(patsubst src/%/,%,$(dir $(i))), 0644)))