about summary refs log tree commit diff
path: root/c/Makefile
blob: bab4f8f0a520bf36b213f7b4d1c50351756a605c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PREFIX = /usr/local

all: dynotify

dynotify: dynotify.c
#	https://stackoverflow.com/q/28533059
#	https://stackoverflow.com/q/3220277
	cc -Wall $$(pkg-config --cflags --libs libnotify libcurl json-c) -o $@ $<

clean:
	rm -f dynotify

install: all
	mkdir -p ${DESTDIR}${PREFIX}/bin
	cp -f dynotify ${DESTDIR}${PREFIX}/bin

uninstall:
	rm -f ${DESTDIR}${PREFIX}/bin/dynotify

.PHONY: all clean install uninstall