about summary refs log blame commit diff
path: root/src/Makefile.am
blob: 5637382172a2030d97ce6b19299b8e3e33ce4da0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                   
                                        


                                                
                 

                                                                            
                                                                                         
     
SUBDIRS = bin2c boost libutil libstore libmain nix-store nix-hash \
 libexpr nix-instantiate nix-env log2xml

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