From 423b10a957b688fecf619843abe691520b4a3a96 Mon Sep 17 00:00:00 2001 From: Anicka Bernathova Date: Wed, 22 Jul 2009 16:24:47 +0200 Subject: [PATCH] add install to Makefile --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.39.2