From a16e59737d6d1cd89cd870f872331ec806e22c78 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 9 Oct 2016 12:18:46 +0300 Subject: Initial commit --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6ec3cd0 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +PREFIX=$(PREFIX) +all: + g++ *.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 + -- cgit v1.3