From e34aed84b17c99fcf286e5d5f212374f335902e4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 26 Nov 2012 15:07:16 -0500 Subject: fix location of the config file --- Makefile | 20 ++++++++++++++++++++ pbs-plumb-config | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c3ee3b2 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +PREFIX=/usr/local + +BINPROGS=$(shell find * -type f -executable) + +all: $(BINPROGS) config + +install: $(addprefix $(DESTDIR)$(PREFIX)/bin/,$(BINPROGS)) $(DESTDIR)/etc/libretools.d/pbs.conf + +uninstall: + for f in $(BINPROGS); do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done + rm -f $(DESTDIR)/etc/libretools.d/pbs.conf + +$(DESTDIR)$(PREFIX)/bin/%: % | $(DESTDIR)$(PREFIX)/bin + install -m755 '$*' '${@D}' + +$(DESTDIR)/etc/libretools.d/pbs.conf: config | $(DESTDIR)/etc/libretools.d + install -m644 '$*' '${@D}' + +$(DESTDIR)$(PREFIX)/bin $(DESTDIR)/etc/libretools.d: + install -d '$@' diff --git a/pbs-plumb-config b/pbs-plumb-config index f175742..87cf189 100755 --- a/pbs-plumb-config +++ b/pbs-plumb-config @@ -26,7 +26,7 @@ main() { local cmd=$1 shift - local file="/home/luke/parabola/pbs2/pbs-utils/config" # XXX + local file="/etc/libretools.d/pbs.conf" case "$cmd" in list) list "$file" "$@" -- cgit v1.1-4-g5e80