-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (28 loc) · 875 Bytes
/
Makefile
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
# Makefile
# help:
# all)
# make --always-make
.DEFAULT_GOAL := help
MAKEFILE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
.PHONY: help
help:
@echo "\n>> help [ command list ]"
@echo 'Usage: make [target]'
@echo ''
@echo 'Targets:'
@grep -E '^.PHONY: [a-zA-Z_-]+.*?##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = " "}; {printf "\033[35m%-30s\033[32m %s\n", $$2, $$4}'
@echo ""
.PHONY: build_android ## [category]`description`.
build_android:
cd lib/mobile/mobile-ffmpeg && ./android.sh
.PHONY: build_ios ## [category]`description`.
build_ios:
cd lib/mobile/mobile-ffmpeg && ./ios.sh
.PHONY: build_standalone ## [category]`description`.
build_standalone:
cd lib/standalone/FFmpeg && \
./configure && \
make && make install
.PHONY: build_all ## [category]`description`.
build_all: build_standalone build_ios build_android
@echo 'completed all build process'