File: 930-use-shell-make-variable.patch

package info (click to toggle)
fbreader 0.10.7dfsg-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 9,684 kB
  • ctags: 10,321
  • sloc: cpp: 60,987; xml: 7,818; makefile: 774; sh: 283
file content (105 lines) | stat: -rw-r--r-- 3,660 bytes parent folder | download
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Use shell MAKE variable to allow parallel builds.
Index: fbreader/Makefile
===================================================================
--- fbreader.orig/Makefile	2009-03-29 18:33:45.941040634 +0300
+++ fbreader/Makefile	2009-03-29 18:34:50.481041319 +0300
@@ -21,21 +21,21 @@
 do_install:
 	@for dir in $(ZLIBDIRS) $(APPDIRS); do \
 		if [ -d $$dir ]; then \
-			cd $$dir; make $@; cd $(ROOTDIR); \
+			cd $$dir; $(MAKE) $@; cd $(ROOTDIR); \
 		fi; \
 	done
 
 do_install_dev:
 	@for dir in $(ZLIBDIRS); do \
 		if [ -d $$dir ]; then \
-			cd $$dir; make $@; cd $(ROOTDIR); \
+			cd $$dir; $(MAKE) $@; cd $(ROOTDIR); \
 		fi; \
 	done
 
 clean:
 	@for dir in $(ZLIBDIRS) $(APPDIRS); do \
 		if [ -d $$dir ]; then \
-			cd $$dir; make $@; cd $(ROOTDIR); \
+			cd $$dir; $(MAKE) $@; cd $(ROOTDIR); \
 		fi; \
 	done
 
Index: fbreader/fbreader/Makefile
===================================================================
--- fbreader.orig/fbreader/Makefile	2009-03-29 18:33:45.957035125 +0300
+++ fbreader/fbreader/Makefile	2009-03-29 18:34:50.481041319 +0300
@@ -55,13 +55,13 @@
 	@install -m 0644 $(wildcard data/icons/toolbar/$(VARIANT)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL)
 	@install -m 0644 $(wildcard data/icons/filetree/$(VARIANT)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL)
 	@install -m 0644 $(wildcard data/icons/booktree/$(VARIANT)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL)
-	@make -C $(TARGET_ARCH) RESOLUTION=$(RESOLUTION) install
+	@$(MAKE) -C $(TARGET_ARCH) RESOLUTION=$(RESOLUTION) install
 
 clean:
 	@for subdir in $(ALL_SUBDIRS); do \
 		$(MAKE) -C $$subdir -f $(MAKEFILESDIR)/subdir.mk clean; \
 	done;
 	@for subdir in $(ALL_ARCHSUBDIRS); do \
-		cd $$subdir; make clean; cd ..; \
+		cd $$subdir; $(MAKE) clean; cd ..; \
 	done;
 	@$(RM) $(TARGET) err
Index: fbreader/zlibrary/core/Makefile
===================================================================
--- fbreader.orig/zlibrary/core/Makefile	2009-03-29 18:33:45.973035972 +0300
+++ fbreader/zlibrary/core/Makefile	2009-03-29 18:34:50.481041319 +0300
@@ -38,7 +38,7 @@
 endif
 
 .objects:
-	@for subdir in $(SUBDIRS); do \
+	+@for subdir in $(SUBDIRS); do \
 		if [ -d $$subdir ]; then \
 			if ! $(LIBMAKE) -C $$subdir -f $(MAKEFILESDIR)/subdir.mk; then \
 				exit 1; \
Index: fbreader/zlibrary/text/Makefile
===================================================================
--- fbreader.orig/zlibrary/text/Makefile	2009-03-29 18:33:45.989033397 +0300
+++ fbreader/zlibrary/text/Makefile	2009-03-29 18:34:50.481041319 +0300
@@ -22,7 +22,7 @@
 SUBDIRS = src/model src/view src/hyphenation
 
 .objects:
-	@for subdir in $(SUBDIRS); do \
+	+@for subdir in $(SUBDIRS); do \
 		if [ -d $$subdir ]; then \
 			if ! $(LIBMAKE) -C $$subdir -f $(MAKEFILESDIR)/subdir.mk; then \
 				exit 1; \
Index: fbreader/zlibrary/ui/Makefile
===================================================================
--- fbreader.orig/zlibrary/ui/Makefile	2009-03-29 18:33:46.005032289 +0300
+++ fbreader/zlibrary/ui/Makefile	2009-03-29 18:34:50.485038965 +0300
@@ -66,21 +66,21 @@
 endif
 
 .objects:
-	@for subdir in $(SUBDIRS); do \
+	+@for subdir in $(SUBDIRS); do \
 		if [ -d $$subdir ]; then \
 			if ! $(LIBMAKE) -C $$subdir -f $(MAKEFILESDIR)/subdir.mk; then \
 				exit 1; \
 			fi; \
 		fi; \
 	done;
-	@for subdir in $(QTSUBDIRS); do \
+	+@for subdir in $(QTSUBDIRS); do \
 		if [ -d $$subdir ]; then \
 			if ! $(LIBMAKE) -C $$subdir -f $(MAKEFILESDIR)/qsubdir.mk; then \
 				exit 1; \
 			fi; \
 		fi; \
 	done;
-	@for subdir in $(GTKSUBDIRS); do \
+	+@for subdir in $(GTKSUBDIRS); do \
 		if [ -d $$subdir ]; then \
 			if ! $(LIBMAKE) -C $$subdir -f $(MAKEFILESDIR)/gtksubdir.mk; then \
 				exit 1; \