civodul pushed a commit to branch nix
in repository guix.
commit de8be7c3e06b52c313e0b452b641ad5f90dca2fe
Author: Eelco Dolstra <[email protected]>
Date: Wed Jul 16 11:16:54 2014 +0200
Install systemd and Upstart stuff only on Linux
---
misc/systemd/local.mk | 6 +++++-
misc/upstart/local.mk | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/misc/systemd/local.mk b/misc/systemd/local.mk
index 5555818..004549f 100644
--- a/misc/systemd/local.mk
+++ b/misc/systemd/local.mk
@@ -1 +1,5 @@
-$(foreach n, nix-daemon.socket nix-daemon.service, $(eval $(call
install-file-in, $(d)/$(n), $(prefix)/lib/systemd/system, 0644)))
+ifeq ($(OS), Linux)
+
+ $(foreach n, nix-daemon.socket nix-daemon.service, $(eval $(call
install-file-in, $(d)/$(n), $(prefix)/lib/systemd/system, 0644)))
+
+endif
diff --git a/misc/upstart/local.mk b/misc/upstart/local.mk
index 249262d..a73dc06 100644
--- a/misc/upstart/local.mk
+++ b/misc/upstart/local.mk
@@ -1 +1,5 @@
-$(foreach n, nix-daemon.conf, $(eval $(call install-file-in, $(d)/$(n),
$(sysconfdir)/init, 0644)))
+ifeq ($(OS), Linux)
+
+ $(foreach n, nix-daemon.conf, $(eval $(call install-file-in, $(d)/$(n),
$(sysconfdir)/init, 0644)))
+
+endif