summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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