aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5d3e992..43f137c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,22 @@
VERSION=\"$(shell git describe --tags --dirty)\"
+PREFIX = /usr/local
+
+all: opendeco
+
opendeco: opendeco.c deco.c deco.h schedule.c schedule.h output.c output.h
gcc --std=c99 -pedantic -Wall -Werror -O3 -DVERSION=${VERSION} opendeco.c deco.c schedule.c output.c -lm -o opendeco
run: opendeco
./opendeco -d 30 -t 120 -g EAN32 --decogasses EAN50
+install: all
+ mkdir -p ${DESTDIR}${PREFIX}/bin
+ cp -f opendeco ${DESTDIR}${PREFIX}/bin
+ chmod 755 ${DESTDIR}${PREFIX}/bin/opendeco
+
+uninstall:
+ rm -f ${DESTDIR}${PREFIX}/bin/opendeco
+
clean:
rm opendeco