4f2432e801
PR: 7331 Submitted by: Garrett A. Wollman <wollman@lcs.mit.edu>
29 lines
694 B
Plaintext
29 lines
694 B
Plaintext
--- Makefile.orig Sun Jul 26 16:11:40 1998
|
|
+++ Makefile Sun Jul 26 16:14:35 1998
|
|
@@ -1,11 +1,12 @@
|
|
|
|
SRCS= include.c list.c main.c subs.c var.c wild.c
|
|
OBJS= include.o list.o main.o subs.o var.o wild.o
|
|
-CFLAGS= -g -O2 -Wall -Wstrict-prototypes
|
|
+CFLAGS= -O2 -Wall
|
|
LFLAGS=
|
|
EXE= xmake
|
|
-IBDIR= /usr/local/bin
|
|
-IMDIR= /usr/local/man/man1
|
|
+PREFIX?= /usr/local
|
|
+IBDIR= $(PREFIX)/bin
|
|
+IMDIR= $(PREFIX)/man/man1
|
|
CC= cc
|
|
|
|
all: $(EXE)
|
|
@@ -16,6 +17,6 @@
|
|
clean:
|
|
rm -f $(OBJS) $(EXE)
|
|
|
|
-install: all
|
|
- install -c -s -m 755 $(EXE) $(IBDIR)/$(EXE)
|
|
-
|
|
+install:
|
|
+ install -c -s -o $(BINOWN) -g $(BINGRP) -m $(BINMODE) $(EXE) $(IBDIR)
|
|
+ install -c -o $(MANOWN) -g $(MANGRP) -m $(MANMODE) xmake.1 $(IMDIR)
|