Revision 0882652d THIRDPARTY-LIBS/Makefile

View differences:

THIRDPARTY-LIBS/Makefile
7 7

  
8 8
all: GRAPES-build NAPA-build
9 9

  
10
x264:
11
	cd .. && git submodule update --init $(THIRDPARTYLIBS)/$@
10
x264/.git:
11
	cd .. && git submodule update --init $(shell dirname $(THIRDPARTYLIBS)/$@)
12 12
	cd x264 && ./configure --prefix=$(THIRDPARTYLIBS)/x264-install/ || { echo "Error configuring x264" && exit 1; }
13 13

  
14
x264-build: x264
14
x264-build: x264/.git
15 15
	$(MAKE) -C x264 || { echo "Error compiling x264" && exit 1; }
16 16

  
17 17
x264-install: x264-build
18 18
	$(MAKE) -C x264 install  || { echo "Error installing x264" && exit 1; }
19 19

  
20
ffmpeg: x264-install
21
	cd .. && git submodule update --init $(THIRDPARTYLIBS)/$@
20
ffmpeg/.git: x264-install
21
	cd .. && git submodule update --init $(shell dirname $(THIRDPARTYLIBS)/$@)
22 22
	cd ffmpeg && ./configure --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I$(THIRDPARTYLIBS)/x264-install/include --extra-ldflags=-L$(THIRDPARTYLIBS)/x264-install/lib --prefix=$(THIRDPARTYLIBS)/ffmpeg-install || { echo "Error configuring ffmpeg" && exit 1; }
23 23
	#in case x264 is not reqired (do we need the encoding?): ./configure --enable-gpl --enable-pthreads --prefix=$BASEDIR/ffmpeg-install
24 24

  
25
ffmpeg-build: ffmpeg
25
ffmpeg-build: ffmpeg/.git
26 26
	$(MAKE) -C ffmpeg || { echo "Error compiling ffmpeg" && exit 1; }
27 27

  
28 28
ffmpeg-install: ffmpeg-build
29 29
	$(MAKE) -C ffmpeg install || { echo "Error installing ffmpeg" && exit 1; }
30 30

  
31
GRAPES: ffmpeg-install
32
	cd .. && git submodule update --init $(THIRDPARTYLIBS)/$@
31
GRAPES/.git: ffmpeg-install
32
	cd .. && git submodule update --init $(shell dirname $(THIRDPARTYLIBS)/$@)
33 33

  
34
GRAPES-build: GRAPES
34
GRAPES-build: GRAPES/.git
35 35
	FFDIR=$(THIRDPARTYLIBS)/ffmpeg $(MAKE) -C GRAPES || { echo "Error compiling GRAPES" && exit 1; }
36 36

  
37
NAPA-BASELIBS:
38
	cd .. && git submodule update --init $(THIRDPARTYLIBS)/$@
37
NAPA-BASELIBS/.git:
38
	cd .. && git submodule update --init $(shell dirname $(THIRDPARTYLIBS)/$@)
39 39

  
40
NAPA-build: NAPA-BASELIBS
40
NAPA-build: NAPA-BASELIBS/.git
41 41
	cd NAPA-BASELIBS && ./build_all.sh -q
42 42

  
43 43
clean:

Also available in: Unified diff