26 lines
936 B
Text
26 lines
936 B
Text
--- Makefile.orig 2003-03-22 05:58:00.000000000 +0800
|
|
+++ Makefile 2014-06-29 22:39:49.234628215 +0800
|
|
@@ -2,7 +2,7 @@
|
|
# Written by Stanislav Shalunov.
|
|
# $Id: Makefile,v 1.6 2003/03/21 21:58:00 shalunov Exp $
|
|
|
|
-PREFIX=/usr/local
|
|
+PREFIX?=/usr/local
|
|
BINDIR=$(PREFIX)/sbin
|
|
MANDIR=$(PREFIX)/man/man8
|
|
|
|
@@ -11,10 +11,10 @@ CFLAGS += -O6 -Wall -W -pedantic
|
|
all: stmpclean stmpclean.0
|
|
|
|
install: all
|
|
- if [ ! -d $(BINDIR) ] ; then mkdir -p -m 0755 $(BINDIR); fi
|
|
- if [ ! -d $(MANDIR) ] ; then mkdir -p -m 0755 $(MANDIR); fi
|
|
- install -c -o 0 -g 0 -m 0555 stmpclean $(BINDIR)/
|
|
- install -c -o 0 -g 0 -m 0444 stmpclean.8 $(MANDIR)/
|
|
+ if [ ! -d $(DESTDIR)$(BINDIR) ] ; then mkdir -p -m 0755 $(DESTDIR)$(BINDIR); fi
|
|
+ if [ ! -d $(DESTDIR)$(MANDIR) ] ; then mkdir -p -m 0755 $(DESTDIR)$(MANDIR); fi
|
|
+ $(BSD_INSTALL_PROGRAM) stmpclean $(DESTDIR)$(BINDIR)/
|
|
+ $(BSD_INSTALL_MAN) stmpclean.8 $(DESTDIR)$(MANDIR)/
|
|
|
|
stmpclean.o: stmpclean.c
|
|
|