summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3abb97e..bb908a7 100644
--- a/Makefile
+++ b/Makefile
@@ -3,14 +3,16 @@ CFLAGS+= -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith
CFLAGS+= -Wunreachable-code -Wformat=2 -g
PREFIX ?= /usr
BINDIR ?= ${PREFIX}/bin
+MANDIR = ${PREFIX}/share/man
generate:
$(CC) -o operetta src/operetta.c src/proposition.c src/parse.c src/lexer.c src/eval.c src/console.c src/conio.c $(CFLAGS)
install: operetta
+ install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR}/man1
install operetta ${DESTDIR}${BINDIR}
+ install -m 644 doc/operetta.1 ${DESTDIR}${MANDIR}/man1
clean:
- rm precedent
-
+ rm operetta
uninstall:
- rm -f ${DESTDIR}${BINDIR}/operetta
+ -rm -f ${DESTDIR}${BINDIR}/operetta ${DESTDIR}${MANDIR}/man1/operetta.1