aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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
+