summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPatrick <devnull@mailinator.com>2017-06-11 19:04:07 +0800
committerPatrick <devnull@mailinator.com>2017-06-11 19:04:07 +0800
commit9385c245df13ad126e8c91bf95800e8d0d4ccbea (patch)
treef8fec7174863b794ca094be15c435aab5eb1ecc7 /Makefile
parent9949f1867f3c09c7cc51d68f057b33f4495e6b37 (diff)
add support for make install to make everything, init x-focus-topmost script
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6c64bed..1a0c3cd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
PREFIX = /usr/local
-SRC = x-session.c
+SRC = x-session.c
X11SRC = $(filter-out $(SRC),$(wildcard *.c))
SCRIPTS= $(wildcard scripts/*)
CC = gcc
-CFLAGS = -O2 -Wall -std=c99 -pedantic
+CFLAGS = -O2 -Wall -std=c99 -pedantic
X11LIB = -lX11 -L/usr/X11/lib
BIN = ${SRC:.c=}
@@ -23,5 +23,5 @@ clean: dist
dist:
@astyle --style=google *.c
-install:
+install: all
install -m 0755 $(BIN) $(X11BIN) $(SCRIPTS) ${PREFIX}/bin/.