Files
waozi bfe2838cae Split the Makefile into one file per area under mk/
The Makefile keeps the shared configuration, the native build and the
release gates. The rules of each area moved unchanged to mk/: laws, cells,
plan9, windows, web, android, packaging, site, release and tools, and the
tests to mk/tests-*.mk, with the `test:` lines in their old order in
mk/tests-suite.mk. make's database is the same rule for rule: targets,
prerequisites in order, recipes and variables.

mk/tests-lumi.mk is read where its rules stood, before TARGET is set, so
its UI tests still do not build $(TARGET) first.

The readers follow: check-version scans mk/*.mk, version_test copies them
for its make run, the visual gate hashes mk, the Firefox source zip ships
mk/ (it lacked mk/sync.mk before), and the release workflow and its
Windows vendor cache count the non-test mk files like the Makefile.
2026-10-17 20:49:06 -03:00

33 lines
1.1 KiB
Makefile

# The website and its meditation audio download.
validate-meditation-audio:
@set -e; \
for file in $(MEDITATION_AUDIO_TRACKS); do \
path="$(UNPACKAGED_AUDIO_DIR)/$$file"; \
if [ ! -f "$$path" ]; then \
echo "Missing meditation audio track: $$path"; \
exit 1; \
fi; \
size=$$(wc -c < "$$path" | tr -d ' '); \
magic=$$(dd if="$$path" bs=4 count=1 2>/dev/null); \
if [ "$$magic" != "OggS" ] || [ "$$size" -lt 4096 ]; then \
echo "Invalid meditation audio track: $$path"; \
echo "Expected a real Ogg file. If this is a Git LFS pointer, run git lfs pull."; \
exit 1; \
fi; \
done
$(MEDITATION_AUDIO_ZIP): $(UNPACKAGED_AUDIO_FILES)
$(MAKE) validate-meditation-audio
mkdir -p $(dir $(MEDITATION_AUDIO_ZIP))
rm -f $(MEDITATION_AUDIO_ZIP)
cd $(UNPACKAGED_AUDIO_DIR) && zip -9 -r $(abspath $(MEDITATION_AUDIO_ZIP)) $(MEDITATION_AUDIO_TRACKS) LICENSE.md MANIFEST.txt
package-unpackaged-assets: validate-meditation-audio $(MEDITATION_AUDIO_ZIP)
site: package-unpackaged-assets web
sh site/build.sh
site-release-assets-check:
sh scripts/check-site-release-assets.sh