File tree Expand file tree Collapse file tree
ffmpeg4java-windows/native Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- INSTALL_PATH := $(PWD ) /../src/main/resources
1+ INSTALL_PATH := $(CURDIR ) /../src/main/resources
22
33.PHONY : checkout
44checkout :
@@ -21,12 +21,12 @@ install:
2121 ./scripts/copy.sh $(INSTALL_PATH )
2222
2323.PHONY : all
24- all : checkout configure compile install
24+ all : build-lib install
2525
2626.PHONY : build-image
2727build-image :
2828 docker build -t ffmpeg4java-linux .
2929
3030.PHONY : build-lib
31- build-lib :
32- docker run --rm -i -v $(PWD ) :/var/native ffmpeg4java-linux make checkout configure compile
31+ build-lib : build-image
32+ docker run --rm -i -v $(CURDIR ) :/var/native ffmpeg4java-linux make checkout configure compile
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22
33set -e
44
5- test ! -d " $( pwd) /ffmpeg" && git clone https://git.ffmpeg.org/ffmpeg.git " $( pwd) /ffmpeg"
5+ if [ ! -d " $( pwd) /ffmpeg" ]; then
6+ git clone https://git.ffmpeg.org/ffmpeg.git " $( pwd) /ffmpeg"
7+ else
8+ pushd " $( pwd) /ffmpeg"
9+ git fetch
10+ popd
11+ fi
612
7- cd " $( pwd) /ffmpeg" && git checkout af25a4bfd2503caf3ee485b27b99b620302f5718
13+ pushd " $( pwd) /ffmpeg"
14+ git checkout af25a4bfd2503caf3ee485b27b99b620302f5718
15+ popd
Original file line number Diff line number Diff line change 1- INSTALL_PATH := $(PWD ) /../src/main/resources
1+ INSTALL_PATH := $(CURDIR ) /../src/main/resources
22
33.PHONY : checkout
44checkout :
@@ -21,4 +21,7 @@ install:
2121 ./scripts/copy.sh $(INSTALL_PATH )
2222
2323.PHONY : all
24- all : checkout configure compile install
24+ all : build-lib install
25+
26+ .PHONY : build-lib
27+ build-lib : checkout configure compile
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22
33set -e
44
5- test ! -d " $( pwd) /ffmpeg" && git clone https://git.ffmpeg.org/ffmpeg.git " $( pwd) /ffmpeg"
5+ if [ ! -d " $( pwd) /ffmpeg" ]; then
6+ git clone https://git.ffmpeg.org/ffmpeg.git " $( pwd) /ffmpeg"
7+ else
8+ pushd " $( pwd) /ffmpeg"
9+ git fetch
10+ popd
11+ fi
612
7- cd " $( pwd) /ffmpeg" && git checkout af25a4bfd2503caf3ee485b27b99b620302f5718
13+ pushd " $( pwd) /ffmpeg"
14+ git checkout af25a4bfd2503caf3ee485b27b99b620302f5718
15+ popd
Original file line number Diff line number Diff line change 1- INSTALL_PATH := $(PWD ) /../src/main/resources
1+ INSTALL_PATH := $(CURDIR ) /../src/main/resources
22
33.PHONY : checkout
44checkout :
@@ -21,12 +21,12 @@ install:
2121 ./scripts/copy.sh $(INSTALL_PATH )
2222
2323.PHONY : all
24- all : checkout configure compile install
24+ all : build-lib install
2525
2626.PHONY : build-image
2727build-image :
2828 docker build -t ffmpeg4java-linux .
2929
3030.PHONY : build-lib
31- build-lib :
32- docker run --rm -i -v $(PWD ) :/var/native ffmpeg4java-linux make compile
31+ build-lib : build-image
32+ docker run --rm -i -v $(CURDIR ) :/var/native ffmpeg4java-linux make checkout configure compile
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22
33set -e
44
5- test ! -d " $( pwd) /ffmpeg" && git clone https://git.ffmpeg.org/ffmpeg.git " $( pwd) /ffmpeg"
5+ if [ ! -d " $( pwd) /ffmpeg" ]; then
6+ git clone https://git.ffmpeg.org/ffmpeg.git " $( pwd) /ffmpeg"
7+ else
8+ pushd " $( pwd) /ffmpeg"
9+ git fetch
10+ popd
11+ fi
612
7- cd " $( pwd) /ffmpeg" && git checkout af25a4bfd2503caf3ee485b27b99b620302f5718
13+ pushd " $( pwd) /ffmpeg"
14+ git checkout af25a4bfd2503caf3ee485b27b99b620302f5718
15+ popd
You can’t perform that action at this time.
0 commit comments