1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/lang/ucc/files/patch-Makefile
Wen Heping a151b7a0ad - respect CC/CFLAGS, now build with clang
PR:		ports/161943
Submitted by:	Nali Toja <nalitoja@gmail.com>
2011-12-31 08:10:20 +00:00

28 lines
609 B
Plaintext

--- Makefile.orig 2011-12-31 14:41:27.000000000 +0800
+++ Makefile 2011-12-31 14:43:38.000000000 +0800
@@ -1,5 +1,5 @@
-UCCDIR = /usr/local/lib/ucc
-export UCCDIR
+UCCDIR = ${PREFIX}
+#export UCCDIR
all:
make -C driver
@@ -10,11 +10,11 @@
make -C ucl clean
install:
- mkdir -p $(UCCDIR)
- cp driver/ucc $(UCCDIR)
- cp ucl/ucl $(UCCDIR)
- cp ucl/assert.o $(UCCDIR)
- cp -r ucl/linux/include $(UCCDIR)
+ mkdir -p $(UCCDIR)/include/ucc
+ cp driver/ucc $(UCCDIR)/bin
+ cp ucl/ucl $(UCCDIR)/bin
+ cp ucl/assert.o $(UCCDIR)/lib
+ cp ucl/linux/include/* $(UCCDIR)/include/ucc/
test:
make -C ucl test