From 26ed62c28ade32e518f8096ed70ab04b44507acf Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 8 Jul 2013 17:11:52 +0200 Subject: update Makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2