2022-01-24 07:06:08 -05:00
|
|
|
.PHONY : help check all clean veryclean build package run update
|
2021-11-19 12:41:54 -05:00
|
|
|
|
2021-12-29 00:05:25 -05:00
|
|
|
version:=$(shell cat ./version)
|
|
|
|
release:=$(shell cat ./release)
|
2021-11-19 12:41:54 -05:00
|
|
|
|
2021-11-19 14:46:23 -05:00
|
|
|
## simplistic archive format selection
|
2021-12-29 00:05:25 -05:00
|
|
|
|
|
|
|
#archive_create=tar cfJ
|
|
|
|
#ext=.tar.xz
|
2021-11-20 05:07:22 -05:00
|
|
|
archive_create=tar cfz
|
|
|
|
ext=.tar.gz
|
2021-11-19 14:46:23 -05:00
|
|
|
#archive_create=zip -r9
|
|
|
|
#ext=.zip
|
|
|
|
|
|
|
|
|
2021-12-29 00:05:25 -05:00
|
|
|
help : README.md
|
2021-12-27 18:55:58 -05:00
|
|
|
|
2022-01-13 14:34:48 -05:00
|
|
|
@echo "use: $(MAKE) [all] [check] [clean] [veryclean] [build] [package] [run]"
|
2021-11-19 12:41:54 -05:00
|
|
|
@echo ""
|
2022-01-13 14:34:48 -05:00
|
|
|
@echo " all - Make LibreWolf source archive ${version}-${release}."
|
2021-11-20 05:07:22 -05:00
|
|
|
@echo " check - Check if there is a new version of Firefox."
|
2021-11-19 12:41:54 -05:00
|
|
|
@echo ""
|
2021-11-20 05:07:22 -05:00
|
|
|
@echo " clean - Clean everything except the upstream firefox tarball."
|
|
|
|
@echo " veryclean - Clean everything and the firefox tarball."
|
2022-01-13 14:34:48 -05:00
|
|
|
@echo ""
|
|
|
|
@echo " build - Make LibreWolf source archive and then build it."
|
|
|
|
@echo " package - Make LibreWolf source archive, then build and package it."
|
|
|
|
@echo " run - Make LibreWolf source archive, then build and run it."
|
2021-12-29 00:05:25 -05:00
|
|
|
@echo ""
|
2021-11-19 12:41:54 -05:00
|
|
|
|
|
|
|
|
2022-01-24 07:06:08 -05:00
|
|
|
check : update README.md
|
|
|
|
python3 scripts/update-version.py
|
2021-12-29 00:31:33 -05:00
|
|
|
@echo "Current release:" $$(cat ./release)
|
2021-11-19 12:41:54 -05:00
|
|
|
|
2022-01-08 16:07:06 -05:00
|
|
|
|
|
|
|
include upstream.mk
|
|
|
|
|
|
|
|
|
2021-12-29 00:05:25 -05:00
|
|
|
all : librewolf-$(version)-$(release).source$(ext) README.md
|
2021-11-19 14:46:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
clean :
|
2021-12-29 00:05:25 -05:00
|
|
|
rm -rf *~ firefox-$(version) librewolf-$(version) librewolf-$(version)-$(release).source$(ext)
|
2021-11-19 14:46:23 -05:00
|
|
|
|
|
|
|
veryclean : clean
|
2022-01-13 12:39:45 -05:00
|
|
|
$(MAKE) clean_upstream_file
|
2021-11-19 14:46:23 -05:00
|
|
|
|
2022-01-08 15:57:39 -05:00
|
|
|
librewolf-$(version)-$(release).source$(ext) : $(upstream_filename) ./version ./release scripts/librewolf-patches.py assets/mozconfig assets/patches.txt README.md
|
2022-01-13 12:39:45 -05:00
|
|
|
$(MAKE) clean_upstream_dir
|
2022-01-08 15:57:39 -05:00
|
|
|
rm -rf librewolf-$(version)
|
2022-01-13 12:39:45 -05:00
|
|
|
$(MAKE) create_lw_from_upstream_dir
|
2022-01-23 13:50:03 -05:00
|
|
|
python3 scripts/librewolf-patches.py $(version) $(release)
|
2021-12-29 00:05:25 -05:00
|
|
|
rm -f librewolf-$(version)-$(release).source$(ext)
|
|
|
|
$(archive_create) librewolf-$(version)-$(release).source$(ext) librewolf-$(version)
|
2022-01-24 06:49:36 -05:00
|
|
|
touch librewolf-$(version)
|
2021-11-21 04:23:21 -05:00
|
|
|
|
2021-12-29 00:05:25 -05:00
|
|
|
librewolf-$(version) : librewolf-$(version)-$(release).source$(ext)
|
|
|
|
tar xf librewolf-$(version)-$(release).source$(ext)
|
2021-11-25 10:24:55 -05:00
|
|
|
|
2022-01-13 14:34:48 -05:00
|
|
|
build : librewolf-$(version)
|
|
|
|
(cd librewolf-$(version) && ./mach build)
|
|
|
|
|
2022-01-24 18:44:26 -05:00
|
|
|
package : build
|
2022-01-13 14:34:48 -05:00
|
|
|
(cd librewolf-$(version) && ./mach package)
|
|
|
|
|
2022-01-24 18:44:26 -05:00
|
|
|
run : build
|
2022-01-13 14:34:48 -05:00
|
|
|
(cd librewolf-$(version) && ./mach run)
|
2021-12-29 00:05:25 -05:00
|
|
|
|
|
|
|
README.md : README.md.in ./version ./release
|
2021-12-29 00:17:59 -05:00
|
|
|
@sed "s/__VERSION__/$(version)/g" < $< > tmp
|
|
|
|
@sed "s/__RELEASE__/$(release)/g" < tmp > $@
|
|
|
|
@rm -f tmp
|
2021-12-29 00:05:25 -05:00
|
|
|
|
2022-01-24 07:06:08 -05:00
|
|
|
|
|
|
|
update : README.md
|
|
|
|
git submodule update --recursive --remote
|