summaryrefslogtreecommitdiff
path: root/devel/xmake/files/patch-aa
blob: afebcf56e027ab86ffd5f724d2a3409f39337744 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- Makefile.orig	Wed Oct 22 19:35:01 1997
+++ Makefile	Tue Jun  4 14:14:40 2002
@@ -1,12 +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+= -Wall
 LFLAGS=
 EXE= xmake
-IBDIR= /usr/local/bin
-IMDIR= /usr/local/man/man1
-CC= cc
+PREFIX?= /usr/local
+IBDIR= $(PREFIX)/bin
+IMDIR= $(PREFIX)/man/man1
 
 all: $(EXE)
 
@@ -16,6 +16,6 @@
 clean:
 	rm -f $(OBJS) $(EXE)
 
-install: all
-	install -c -s -m 755 $(EXE) $(IBDIR)/$(EXE)
-
+install:
+	$(BSD_INSTALL_PROGRAM) $(EXE) $(IBDIR)
+	$(BSD_INSTALL_MAN) xmake.1 $(IMDIR)