diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |