40 lines
692 B
Makefile
40 lines
692 B
Makefile
# Declare the default target
|
|
.DEFAULT_GOAL := run
|
|
|
|
# Define the targets
|
|
flatpak:
|
|
mkdir -p repo
|
|
flatpak-builder --repo=repo --force-clean build-dir io.github.dvlv.boxbuddyrs.json
|
|
flatpak build-bundle repo boxbuddy.flatpak io.github.dvlv.boxbuddyrs
|
|
|
|
run:
|
|
GSETTINGS_SCHEMA_DIR=. cargo run
|
|
|
|
lint:
|
|
cargo fmt
|
|
cargo clippy
|
|
|
|
potfile:
|
|
bash scripts/create-pot.sh
|
|
|
|
|
|
# Declare a phony target for clean
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
rm -rf build-dir/*
|
|
rm -rf target/*
|
|
rm -rf .flatpak-builder/*
|
|
|
|
clean-flatpak:
|
|
rm -rf build-dir/*
|
|
rm -rf .flatpak-builder/*
|
|
|
|
version-check:
|
|
bash scripts/version-check.sh
|
|
|
|
translate:
|
|
bash scripts/compile-translations.sh
|
|
|
|
f40:
|
|
GETTEXT_SYSTEM=true cargo build --release
|