1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/lang/caml-light/files/patch-contrib_lorder_Makefile
Joseph Koshy 02e454d15d - Honor CC, CFLAGS etc. [1]
- Use BSD_INSTALL_* macros to install files.	[1]
- Make the port PREFIX clean.

PR:		ports/101398	[1]
Submitted by:	Stanislav Sedov <ssedov@mbsd.msk.ru>
2006-08-06 10:53:54 +00:00

37 lines
858 B
Plaintext

--- contrib/lorder/Makefile.orig Thu Dec 24 00:36:56 1998
+++ contrib/lorder/Makefile Sun Aug 6 12:14:52 2006
@@ -1,9 +1,9 @@
-MANDIR=/usr/man/man1
-BINDIR=/usr/local/bin
+MANDIR=${PREFIX}/man/man1
+BINDIR=${PREFIX}/bin
-CPP=/lib/cpp -P -Dunix
+CPP=/usr/bin/cpp -P -Dunix
-CAMLC=camlc
+CAMLC=${PREFIX}/bin/camlc
CAMLCOMP=$(CAMLC) -c
COMPFLAGS=-g -W -I ../../src/compiler
LINKFLAGS=-g -I ../../src/compiler
@@ -15,7 +15,7 @@
all: camllorder
camllorder: $(OBJS)
- camlc $(LINKFLAGS) -o camllorder $(COMPILEROBJS) $(OBJS)
+ ${CAMLC} $(LINKFLAGS) -o camllorder $(COMPILEROBJS) $(OBJS)
clean:
rm -f *.z[oi] camllorder Makefile.bak
@@ -26,8 +26,8 @@
rm -f camllorder.tar.Z
install:
- cp camllorder $(BINDIR)
- cp camllorder.1 $(MANDIR)
+ ${BSD_INSTALL_SCRIPT} camllorder $(BINDIR)
+ ${BSD_INSTALL_MAN} camllorder.1 $(MANDIR)
.SUFFIXES :