summaryrefslogtreecommitdiff
blob: df766c07cbcce5f59a7aebb2b8ceed9583854b32 (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
http://bugs.gentoo.org/266739

--- src/Makefile
+++ src/Makefile
@@ -3,10 +3,10 @@
 all:	../bin/dvdrip-splitpipe ../bin/dvdrip-progress
 
 ../bin/dvdrip-splitpipe:	dvdrip-splitpipe.c
-	$(CC) $(OTHERLDFLAGS) $(CFLAGS) -o dvdrip-splitpipe dvdrip-splitpipe.c && mv dvdrip-splitpipe ../bin
+	$(CC) $(OTHERLDFLAGS) $(CFLAGS) -o ../bin/dvdrip-splitpipe dvdrip-splitpipe.c
 
 ../bin/dvdrip-progress:	dvdrip-progress.c
-	$(CC) $(OTHERLDFLAGS) $(CFLAGS) -o dvdrip-progress dvdrip-progress.c && mv dvdrip-progress ../bin
+	$(CC) $(OTHERLDFLAGS) $(CFLAGS) -o ../bin/dvdrip-progress dvdrip-progress.c
 
 clean:
 	rm -f dvdrip-splitpipe ../bin/dvdrip-splitpipe dvdrip-progress ../bin/dvdrip-progress
--- Makefile.PL
+++ Makefile.PL
@@ -52,7 +52,7 @@
 sub MY::postamble {
     '
 bin/dvdrip-splitpipe bin/dvdrip-progress: src/Makefile
-	cd src && make
+	cd src && ( $(MAKE) CC=$(CC) )
 ';
 }