1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00
nix/local.mk

17 lines
673 B
Makefile
Raw Normal View History

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