aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-10-09 12:18:46 +0300
committerJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-10-09 14:50:24 +0300
commita16e59737d6d1cd89cd870f872331ec806e22c78 (patch)
treea73c58e1850736f6a9b86d526c717c0829f0312d /Makefile
parent773c1e2aaafbde4ef9d64ea03e19922a3652b010 (diff)
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
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
+