From: Anicka Bernathova Date: Wed, 22 Jul 2009 14:24:47 +0000 (+0200) Subject: add install to Makefile X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=423b10a957b688fecf619843abe691520b4a3a96;p=umpf.git add install to Makefile --- diff --git a/Makefile b/Makefile index 6131357..36c5b85 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,11 @@ all: umpf CC=gcc CFLAGS=-Wall -W -Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes -O2 -g LDLIBS=-lpcre +DESTDIR= +PREFIX=/usr +BINDIR=bin +MANDIR=share/man/man1 +MAILGRP=mail umpf: umpf.c cond.tab.o lex.o ham.o lists.o lock.o code.o int.o gcc -o $@ $^ $(LDLIBS) @@ -26,3 +31,7 @@ cond.tab.c: cond.y clean: rm -rf cond.tab.[ch] cond.output cond umpf *.o core + +install: + install -m 2755 -g $(MAILGRP) umpf $(DESTDIR)/$(PREFIX)/$(BINDIR) + install -m 0644 umpf.1 $(DESTDIR)/$(PREFIX)/$(MANDIR)