summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-08 17:11:52 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-08 17:11:52 +0200
commit26ed62c28ade32e518f8096ed70ab04b44507acf (patch)
tree0a09d9d00a0f2360b3f0580b8f8e03e605722094 /Makefile
parentfd3e547ac2604c1ce776a59118865e869d561164 (diff)
downloadudev-block-notify-26ed62c28ade32e518f8096ed70ab04b44507acf.tar.gz
udev-block-notify-26ed62c28ade32e518f8096ed70ab04b44507acf.tar.zst
update Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8d0314b..25f88b8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
# udev-block-notify - Notify about udev block events
CC := gcc
+INSTALL := install
+RM := rm
CFLAGS += -O2 -Wall -Werror
CFLAGS += $(shell pkg-config --cflags --libs libudev) \
$(shell pkg-config --cflags --libs libnotify)
@@ -10,5 +12,9 @@ all: udev-block-notify.c
$(CC) $(CFLAGS) -o udev-block-notify udev-block-notify.c \
-DVERSION="\"$(VERSION)\""
+install:
+ $(INSTALL) -D -m0755 udev-block-notify $(DESTDIR)/usr/bin/udev-block-notify
+ $(INSTALL) -D -m0644 udev-block-notify.desktop $(DESTDIR)/etc/xdg/autostart/udev-block-notify.desktop
+
clean:
- /bin/rm -f *.o *~ udev-block-notify
+ $(RM) -f *.o *~ udev-block-notify