--- Makefile.orig Sun Jul 26 16:11:40 1998 +++ Makefile Sun Jul 26 16:14:35 1998 @@ -1,11 +1,11 @@ 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+= -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)