Commit ff1e051a authored by Petr Baudis's avatar Petr Baudis
Browse files

Makefile: A straightforward install rule

parent 604094ea
CFLAGS=-Wall -Wextra -Wno-unused -O3 -std=gnu99 -ggdb3
PREFIX:=/usr/local
all: compctld compctl
......@@ -11,5 +12,10 @@ help-in-quotes: README.client
cat $< | sed -e '0,/^Usage/d; /^Description/,$$d' | \
tail -n +3 | sed -e 's/\(.*\)/"\1\\n"/' >$@
install:
install -g root -m 755 -o root -t $(DESTDIR)$(PREFIX)/bin compctl
install -g root -m 755 -o root -t $(DESTDIR)$(PREFIX)/sbin compctld
install -g root -m 755 -o root -t $(DESTDIR)$(PREFIX)/share/man/man1 compctl.1
clean:
rm -f compctl compctld compctl.o compctld.o cgroup.o help-in-quotes
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment