devel/ros: Properly support specified gmake

This port needs gmake, but "make" was hardcoded.
This fix unbreaks it on head where bmake is default.
This commit is contained in:
John Marino 2013-12-08 21:13:56 +00:00
parent 259339a625
commit 324f72f820
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335942

View file

@ -0,0 +1,39 @@
--- tools/rospack/Makefile.orig 2011-09-02 17:53:09.000000000 +0000
+++ tools/rospack/Makefile
@@ -10,28 +10,28 @@ all:
-mkdir -p bin
@if ! (cd build && cmake ..); then \
echo "[rosbuild] CMake failed; trying to clean and start over"; \
- make clean; \
+ $(MAKE) clean; \
mkdir -p build; \
cd build && cmake ..; \
fi
- cd build && make $(PARALLEL_JOBS)
+ cd build && $(MAKE) $(PARALLEL_JOBS)
install: all
- cd build && make install
+ cd build && $(MAKE) install
# The clean target blows everything away
clean:
- -cd build && make clean
+ -cd build && $(MAKE) clean
rm -rf build
test: all
- if cd build && make -k $@; then make test-results; else make test-results && exit 1; fi
+ if cd build && $(MAKE) -k $@; then make test-results; else $(MAKE) test-results && exit 1; fi
tests: all
- cd build && make $@
+ cd build && $(MAKE) $@
test-future: all
- cd build && make -k $@
+ cd build && $(MAKE) -k $@
gcoverage: all
- cd build && make $@
+ cd build && $(MAKE) $@
#SRC = main.cpp
#LIBSRC = rospack.cpp \