summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2017-08-16 20:36:09 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2017-08-16 20:36:09 -0400
commitcf89b3457feaa7f7695fc992d25473f773423008 (patch)
tree0938e816cc26f6d68192f77d2ad90daec77d14b1 /Makefile
downloadinhibit-screensaver-cf89b3457feaa7f7695fc992d25473f773423008.tar.xz
inhibit-screensaver-cf89b3457feaa7f7695fc992d25473f773423008.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..699b2a1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+prefix := /usr/local
+bindir := $(prefix)/bin
+CFLAGS += $(shell pkg-config --cflags dbus-1) -Wall -Wextra -std=c99
+LDLIBS := $(shell pkg-config --libs dbus-1)
+
+inhibit-screensaver: inhibit-screensaver.o
+
+clean:
+ $(RM) inhibit-screensaver.o inhibit-screensaver
+
+install:
+ install -D -m0755 inhibit-screensaver $(bindir)
+
+uninstall:
+ $(RM) $(bindir)/inhibit-screensaver