aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: a61038cc268049dcee43ae8776eb52309505451f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PREFIX=$(PREFIX)
all:
	g++ -std=c++11 *.cpp -o me -Wall -O2

clean: me
	rm 'me'

test:
	echo $$PREFIX

install: me
	if [ -z "$$PREFIX" ] ; then \
		echo "No PREFIX set. Aborting install."; \
	else \
		echo "Installing in $$PREFIX/bin/..."; \
		cp me "$$PREFIX"/bin/me; \
		echo "Done."; \
	fi