1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

* Generate the scripts so that we can substitute the prefix

etc. correctly.
* Fixed nix-switch.
This commit is contained in:
Eelco Dolstra 2003-07-13 18:58:03 +00:00
parent 5304a1eb3a
commit 9c620e4afa
6 changed files with 23 additions and 24 deletions

View file

@ -1,9 +1,19 @@
bin_SCRIPTS = nix-switch nix-collect-garbage \
nix-pull nix-push
noinst_SCRIPTS = nix-profile.sh
install-exec-local:
$(INSTALL) -d $(sysconfdir)/profile.d
$(INSTALL_PROGRAM) nix-profile.sh $(sysconfdir)/profile.d/nix.sh
$(INSTALL) -d $(sysconfdir)/nix
# !!! don't overwrite local modifications
$(INSTALL_DATA) prebuilts.conf $(sysconfdir)/nix/prebuilts.conf
%: %.in Makefile
sed \
-e s^@prefix\@^$(prefix)^g \
-e s^@sysconfdir\@^$(sysconfdir)^g \
-e s^@localstatedir\@^$(localstatedir)^g \
< $< > $@ || rm $@
chmod +x $@