2014-02-01 16:30:24 +01:00
|
|
|
ifeq ($(MAKECMDGOALS), dist)
|
2015-10-15 20:29:38 +02:00
|
|
|
# Make sure we are in repo root with `--git-dir`
|
|
|
|
dist-files += $(shell git --git-dir=.git ls-files || find * -type f)
|
2014-02-01 16:30:24 +01:00
|
|
|
endif
|
2014-02-01 14:28:31 +01:00
|
|
|
|
2017-12-04 17:07:26 +01:00
|
|
|
dist-files += configure config.h.in nix.spec perl/configure
|
2014-02-01 15:18:48 +01:00
|
|
|
|
2014-07-30 11:36:28 +02:00
|
|
|
clean-files += Makefile.config
|
|
|
|
|
2017-04-14 14:42:20 +02:00
|
|
|
GLOBAL_CXXFLAGS += -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr
|
2014-02-07 17:15:00 +01:00
|
|
|
|
2017-02-07 18:49:17 +01:00
|
|
|
$(foreach i, config.h $(call rwildcard, src/lib*, *.hh), \
|
2015-06-09 11:14:36 +02:00
|
|
|
$(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
|
2014-03-05 11:11:24 +01:00
|
|
|
|
2014-08-20 18:33:07 +02:00
|
|
|
$(foreach i, $(call rwildcard, src/boost, *.hpp), $(eval $(call install-file-in, $(i), $(includedir)/nix/$(patsubst src/%/,%,$(dir $(i))), 0644)))
|