forked from lix-project/lix
49fe9592a4
The thread calls poll() to wait until a HUP (or other error event) happens on the client connection. If so, it sends SIGINT to the main thread, which is then cleaned up normally. This is much nicer than messing around with SIGPOLL.
13 lines
518 B
Makefile
13 lines
518 B
Makefile
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)))
|