diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-13T18·58+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-13T18·58+0000 |
commit | 9c620e4afa03e63ddaff2979396144de8d9298a5 (patch) | |
tree | 7bfabf03cd1665a9049763b31ce42305d85af13e /scripts/Makefile.am | |
parent | 5304a1eb3a2bbcc379924d3f5a58b64ce77f4849 (diff) |
* Generate the scripts so that we can substitute the prefix
etc. correctly. * Fixed nix-switch.
Diffstat (limited to 'scripts/Makefile.am')
-rw-r--r-- | scripts/Makefile.am | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 2f4dbacc93f0..a8cbe8222b07 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -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 $@ |