aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7a9cd9ef19e793e7ce4987f9f219a0d5b77c327a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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