summaryrefslogtreecommitdiff
path: root/appweb/appweb-1.2.0/makerules.patch
blob: 55d3dd22d902ec3261e9edb71a2c6ae8cae49b60 (plain)
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
30
31
32
33
34

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- appWeb-1.2.0/make.rules~makerules	2004-06-28 14:50:23.000000000 -0500
+++ appWeb-1.2.0/make.rules	2004-07-15 13:27:35.000000000 -0500
@@ -61,24 +61,19 @@
 for i in $$D "" ; \
 do [ -z "$$i" ] && continue ;\
 	[ -d "$$i" ] || continue ;\
-	home=`pwd` ; \
-	cd "$$i" >/dev/null ; \
-	if [ -f Makefile ] ; then \
+	if [ -f $$i/Makefile ] ; then \
 		echo ; \
-		echo "    cd $$i" ; \
 		set +e ; \
 		unset COMPILE_SHARED EXPORT_OBJECTS _LDPATH ; \
 		set -e ; \
 		echo "    \# $(MAKE) $$T" ; \
-		$(MAKE) --no-print-directory -S $$T ; \
+		$(MAKE) -C $$i --no-print-directory -S $$T ; \
 		code=$$? ; \
 		if [ $$code != 0 ] ; then \
 			echo "\#WARNING: Makefile error in `pwd`" ; \
 			exit 255 ; \
 		fi ; \
-		echo "    cd $$home" ; \
 	fi ; \
-	cd $$home >/dev/null ;\
 done
 
 DO_RECURSE=[ -z "$$D" ] || $(RECURSE)