summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: f207c3ffd6144c51e5635073c0e06df160b67265 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# udev-block-notify - Notify about udev block events

CC	:= gcc
CFLAGS	+= $(shell pkg-config --cflags --libs libudev) \
	   $(shell pkg-config --cflags --libs blkid) \
	   $(shell pkg-config --cflags --libs libnotify)
VERSION	= $(shell git describe --tags --long)

all: udev-block-notify.c
	$(CC) $(CFLAGS) -o udev-block-notify udev-block-notify.c \
		-DVERSION="\"$(VERSION)\""

clean:
	/bin/rm -f *.o *~ udev-block-notify