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

                                                                                           
                          

                                                                                                                        

                                                                                                                                                           
ifeq ($(MAKECMDGOALS), dist)
  dist-files += $(shell git ls-files)
endif

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

GLOBAL_CXXFLAGS += -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr
GLOBAL_LDFLAGS += -pthread

$(foreach i, config.h $(call rwildcard, src/lib*, *.hh), $(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))

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