lix/src/Makefile.am

16 lines
488 B
Makefile
Raw Normal View History

SUBDIRS = bin2c boost libutil libstore libmain nix-store nix-hash \
2005-10-05 09:42:13 +00:00
libexpr nix-instantiate nix-env nix-log2xml bsdiff-4.2
EXTRA_DIST = aterm-helper.pl
SETUID_PROGS = nix-store nix-instantiate nix-env
install-exec-hook:
if SETUID_HACK
if HAVE_SETRESUID
cd $(DESTDIR)$(bindir) && chown @NIX_USER@ $(SETUID_PROGS) \
&& chgrp @NIX_GROUP@ $(SETUID_PROGS) && chmod ug+s $(SETUID_PROGS)
else
cd $(DESTDIR)$(bindir) && chown root $(SETUID_PROGS) && chmod u+s $(SETUID_PROGS)
endif
endif