freebsd-ports/databases/ruby-qdbm/files/patch-Makefile.in

37 lines
1.1 KiB
Text
Raw Normal View History

--- Makefile.in.orig 2006-09-06 03:37:33 UTC
+++ Makefile.in
@@ -25,7 +25,7 @@ MYDATADIR = @datadir@/$(PACKAGE)/ruby
DESTDIR =
2011-07-24 23:37:52 +02:00
# Building binaries
-RUNENV = LD_LIBRARY_PATH=.:..:../..:/usr/local/lib
+RUNENV =
2011-07-24 23:37:52 +02:00
@@ -34,15 +34,16 @@ RUNENV = LD_LIBRARY_PATH=.:..:../..:/usr
#================================================================
-all :
- cd depot && [ -f Makefile ] || $(RUNENV) ruby extconf.rb ; $(RUNENV) make
- cd curia && [ -f Makefile ] || $(RUNENV) ruby extconf.rb ; $(RUNENV) make
- cd villa && [ -f Makefile ] || $(RUNENV) ruby extconf.rb ; $(RUNENV) make
- @printf '\n'
- @printf '#================================================================\n'
- @printf '# Ready to install.\n'
- @printf '#================================================================\n'
+all:
+ for d in depot curia villa; do \
+ (cd $$d && ${MAKE} all); \
+ done
+.PHONY: configure
+configure:
+ for d in depot curia villa; do \
+ (cd $$d && ${LOCALBASE}/bin/ruby extconf.rb); \
+ done
clean :
cd depot ; if [ -f Makefile ] ; then $(RUNENV) make -i clean ; fi || true