summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2017-12-24 13:56:09 -0700
committerAaron Ball <nullspoon@oper.io>2017-12-24 13:56:09 -0700
commitc2927f0e4083ac07dff21c4af1e315417128fc1e (patch)
tree322b30c5a9ada8fc6ae9d29acd02f74e5621b6fa
parent66763dab98ae75c60661f656c5230cc6365f51a3 (diff)
downloadluminous-c2927f0e4083ac07dff21c4af1e315417128fc1e.tar.gz
luminous-c2927f0e4083ac07dff21c4af1e315417128fc1e.tar.xz
Updated makefile for init script
Now the init script is deployed on make install. Also fixed DESTDIR and added BINDIR variable.
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f5f6b74..f4b2ef8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,15 @@
out=luminous
CCOPTS=-Wall
-DESTDIR=/usr/bin
+
+BINDIR=/usr/bin
+INITDIR=/etc/rc.d
all:
cc $(CCOPTS) $(DBG) src/main.c -o luminous
install:
- install -D luminous ${DESTDIR}/luminous
+ install -D luminous ${DESTDIR}/${BINDIR}/luminous
+ install -D init.sh ${DESTDIR}/${INITDIR}/luminous
debug:
make DBG=-g

Generated by cgit