2014-10-18 13:57:36 +00:00
|
|
|
# spark-rc makefile
|
2014-08-09 10:59:12 +00:00
|
|
|
|
|
|
|
# Please modify config.mk and not this
|
|
|
|
sinclude config.mk
|
|
|
|
|
2015-08-26 11:44:08 +00:00
|
|
|
.PHONY: clean install uninstall all tools
|
2014-08-09 10:59:12 +00:00
|
|
|
|
2015-08-26 11:44:08 +00:00
|
|
|
build: rc tools
|
2014-08-09 10:59:12 +00:00
|
|
|
|
|
|
|
all: build
|
|
|
|
|
2015-08-26 11:44:08 +00:00
|
|
|
tools:
|
|
|
|
make -C tools
|
|
|
|
|
2014-08-09 10:59:12 +00:00
|
|
|
rc: rc.in
|
|
|
|
sed -r \
|
|
|
|
-e 's%@ETC@%$(ETC)%' \
|
2015-08-26 11:44:08 +00:00
|
|
|
-e 's%@BASH_PATH@%$(BASH_PATH)%' \
|
2014-08-09 10:59:12 +00:00
|
|
|
rc.in > rc
|
|
|
|
|
|
|
|
chmod 750 $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm rc
|
|
|
|
|
2015-08-26 11:44:08 +00:00
|
|
|
make -C tools clean
|
|
|
|
|
2014-08-09 10:59:12 +00:00
|
|
|
install: build
|
|
|
|
install -dm755 $(BINDIR)
|
|
|
|
install -dm755 $(ETCDIR)
|
|
|
|
|
|
|
|
install -m750 rc $(BINDIR)/rc
|
|
|
|
install -m644 rc.conf $(ETCDIR)/rc.conf
|
2014-12-27 15:28:34 +00:00
|
|
|
install -m644 rc.motd $(ETCDIR)/rc.motd
|
2014-08-09 10:59:12 +00:00
|
|
|
|
2014-10-18 13:56:51 +00:00
|
|
|
install -m755 tools/killall5 $(BINDIR)/killall5
|
|
|
|
|
2015-08-26 11:44:08 +00:00
|
|
|
make -C tools install
|
|
|
|
|
2014-08-09 10:59:12 +00:00
|
|
|
uninstall:
|
|
|
|
rm $(BINDIR)/rc
|
2015-08-26 11:44:08 +00:00
|
|
|
|
|
|
|
make -C tools uninstall
|