From 6538f994c8f4cc9a327e49257b3db6c101b4a4c1 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 2 Mar 2013 13:19:50 +0000 Subject: Add an rc-script plus its install target --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4db0245..ef6a9b5 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,14 @@ CFLAGS+=-Wall -Wextra -pedantic -Os +LDFLAGS+=-s +PREFIX?=/usr/local jaildaemon: jaildaemon.c $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) +install: jaildaemon + install -o 0 -g 0 -m 0755 jaildaemon $(PREFIX)/bin + install -o 0 -g 0 -m 0755 rc.d-jaildaemon $(PREFIX)/etc/rc.d/jaildaemon + .PHONY: clean test clean: rm -f jaildaemon -- cgit v1.2.3