0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 05:33:03 -05:00
LibreWolf/Makefile

50 lines
1.2 KiB
Makefile
Raw Normal View History

2021-11-19 13:07:31 -05:00
.PHONY : all help clean veryclean check init
2021-11-19 12:41:54 -05:00
version_file=./version
version:=$(shell cat $(version_file))
include assets/Makefile.includes
help :
2021-11-19 13:07:31 -05:00
@echo "use: make [all] [clean] [veryclean] [check] [source] [init]"
2021-11-19 12:41:54 -05:00
@echo ""
2021-11-19 13:07:31 -05:00
@echo " all - make librewolf tarball ${version} in source/ folder."
2021-11-19 12:41:54 -05:00
@echo " check - check if there is a new version of Firefox."
@echo ""
2021-11-19 13:07:31 -05:00
@echo " clean - clean everything except the upstream firefox tarball."
@echo " veryclean - clean everything and the firefox tarball."
2021-11-19 12:41:54 -05:00
@echo ""
2021-11-19 13:07:31 -05:00
@echo " init - set up local build environment, takes a long time."
2021-11-19 12:41:54 -05:00
clean :
make -C source clean
veryclean : # deliberately not depending on 'clean' in this case.
make -C source veryclean
#
# The 'all' target builds everything while trying to minimize
# disk space.
#
2021-11-19 13:07:31 -05:00
all :
make -C source all
2021-11-19 12:41:54 -05:00
#
# Keeping ./version up to date.
#
check :
@python3 assets/update-version.py
#
# init: run bootstrap on local machine
#
init :
wget -q "https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py"
python3 bootstrap.py --no-interactive --application-choice=browser
rm -rf bootstrap.py mozilla-unified