myplayer/Makefile

48 lines
947 B
Makefile
Raw Normal View History

.PHONY: \
all \
depend \
depend-mediaelement \
depend-mediaelement-plugins \
depend-node \
css \
src \
test
2024-11-10 15:08:51 +01:00
all: \
depend \
css \
src
depend: \
depend-node \
depend-mediaelement \
depend-mediaelement-plugins
depend-mediaelement:
@echo "Preparing dependency \"mediaelement\" ..."
git -C mediaelement reset --hard HEAD
patch -d mediaelement -p1 < patches/mediaelement/01-iconsprite.diff
cd mediaelement && grunt
depend-mediaelement-plugins:
@echo "Preparing dependency \"mediaelement-plugins\" ..."
git -C mediaelement-plugins reset --hard HEAD
patch -d mediaelement-plugins -p1 < patches/mediaelement-plugins/01-playlist.js.diff
cd mediaelement-plugins && grunt
depend-node:
@echo "Installing required NodeJS dependencies ..."
npm install
2024-11-10 15:08:51 +01:00
css:
@echo "Building CSS ..."
2024-11-10 15:08:51 +01:00
css/build.sh
2024-11-10 15:08:51 +01:00
src:
@echo "Building Javascript ..."
2024-11-10 15:08:51 +01:00
src/build.sh
test:
@echo "Performing tests ..."
npm test