From 21bb561b81d6c395ce0b004ce3b70a02c00360ef Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 20 Dec 2012 10:50:50 +0700 Subject: //streams -> //god/streams --- god/streams/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 god/streams/Makefile (limited to 'god/streams/Makefile') diff --git a/god/streams/Makefile b/god/streams/Makefile new file mode 100644 index 00000000..ab5d1429 --- /dev/null +++ b/god/streams/Makefile @@ -0,0 +1,16 @@ +INITD = $(shell test -e /etc/rc.d/ && echo /etc/rc.d/ || echo /etc/init.d/) +streams = $(shell cut -d\ -f2 stream.db) + + +CURRDIR = ${PWD} +.PHONY: all $(streams) +local: ../bin/streams + +../bin/streams: + ln -sf $$PWD/streams ../bin/streams +all: $(streams) + @update-rc.d groove defaults 2>/dev/null || echo "** put groove daemon in DAEMONS in /etc/rc.conf" + +$(streams): local + @test -L $(INITD)$@ || test ! -e $(INITD)$@ && \ + ln -n -s -f $$PWD/stream-starter $(INITD)$@ && echo "writing $@ to $(INITD)" -- cgit v1.2.3 From e2b9d1434ac87bf2fa160b09924eee84b9b123cb Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 20 Dec 2012 11:15:48 +0700 Subject: //god/streams/ - cleanup --- god/streams/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'god/streams/Makefile') diff --git a/god/streams/Makefile b/god/streams/Makefile index ab5d1429..2d0056f4 100644 --- a/god/streams/Makefile +++ b/god/streams/Makefile @@ -4,10 +4,10 @@ streams = $(shell cut -d\ -f2 stream.db) CURRDIR = ${PWD} .PHONY: all $(streams) -local: ../bin/streams +local: ../../bin/streams -../bin/streams: - ln -sf $$PWD/streams ../bin/streams +../../bin/streams: + ln -sf $$PWD/bin/streams ../../bin/streams all: $(streams) @update-rc.d groove defaults 2>/dev/null || echo "** put groove daemon in DAEMONS in /etc/rc.conf" -- cgit v1.2.3