mirror of
https://github.com/NixOS/nix.git
synced 2024-11-23 07:12:27 +00:00
6d80870832
In particular, using fetchGit means we don't need hackery to clean the source tree when building from an unclean tree.
15 lines
536 B
Makefile
15 lines
536 B
Makefile
ifeq ($(MAKECMDGOALS), dist)
|
|
dist-files += $(shell cat .dist-files)
|
|
endif
|
|
|
|
dist-files += configure config.h.in nix.spec perl/configure
|
|
|
|
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), \
|
|
$(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)))
|