]> mj.ucw.cz Git - umpf.git/commitdiff
add install to Makefile
authorAnicka Bernathova <anicka@anicka.net>
Wed, 22 Jul 2009 14:24:47 +0000 (16:24 +0200)
committerAnicka Bernathova <anicka@anicka.net>
Wed, 22 Jul 2009 14:24:47 +0000 (16:24 +0200)
Makefile

index 6131357be4a3ca94b79f64cda315cf2a0effbb0d..36c5b85261380f0c6b765d98d3e439553fa06c25 100644 (file)
--- 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)