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