diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-08 17:11:52 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-08 17:11:52 +0200 |
commit | 26ed62c28ade32e518f8096ed70ab04b44507acf (patch) | |
tree | 0a09d9d00a0f2360b3f0580b8f8e03e605722094 | |
parent | fd3e547ac2604c1ce776a59118865e869d561164 (diff) | |
download | udev-block-notify-26ed62c28ade32e518f8096ed70ab04b44507acf.tar.gz udev-block-notify-26ed62c28ade32e518f8096ed70ab04b44507acf.tar.zst |
update 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 |