ports/sysutils/monitord/files/patch-Makefile
2013-11-15 15:25:56 +00:00

25 lines
672 B
Text

--- Makefile.orig 2003-08-22 06:36:42.000000000 +0800
+++ Makefile 2013-11-15 23:14:43.000000000 +0800
@@ -6,7 +6,7 @@ OBJECTS = monitord.o mail.o
TARGET = monitord
-MANDIR = /usr/local/man
+MANDIR = $(PREFIX)/man
.SUFFIXES:
.SUFFIXES: .c .o
@@ -24,10 +24,8 @@ clean:
all: $(TARGET)
-$(TARGET): $(OBJECTS)
- $(CC) $(OBJECTS) -o $(TARGET)
install:
- $(INSTALL) -cs $(TARGET) /usr/local/sbin
- $(INSTALL) -c $(TARGET).conf.sample /usr/local/etc
- $(INSTALL) -c $(TARGET).8 $(MANDIR)/man8
+ $(INSTALL) -cs $(TARGET) $(DESTDIR)$(PREFIX)/sbin
+ $(INSTALL) -c $(TARGET).conf.sample $(DESTDIR)$(PREFIX)/etc
+ $(INSTALL) -c $(TARGET).8 $(DESTDIR)$(MANDIR)/man8