diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |