PREFIX = /usr/local all: remote_plot remote_plot: remote_plot.c cc -Wall $$(pkg-config --cflags --libs libssh plplot gtk4) -lm -o $@ $< clean: rm -f remote_plot install: all mkdir -p ${DESTDIR}${PREFIX}/bin cp -f remote_plot ${DESTDIR}${PREFIX}/bin uninstall: rm -f ${DESTDIR}${PREFIX}/bin/remote_plot .PHONY: all clean install uninstall