about summary refs log blame commit diff
path: root/local.mk
blob: 2541f3f322901eaf83eb5fca4a60810f713ad6ea (plain) (tree)
1
2
3
4
5
6
7
8
9
                            

                                                                      
     
 
                                            
 

                              

                                                                                             
 

                                                                                          
 
                                                                                                                                                  
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

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 \
  -Wno-unneeded-internal-declaration

$(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)))