move scripts into Makefile

This commit is contained in:
Dvlv 2024-01-20 12:43:05 +00:00
parent ba1663ed44
commit f2c3769120
No known key found for this signature in database
GPG key ID: 1F4BD7220B7FDCFA
3 changed files with 21 additions and 5 deletions

21
Makefile Normal file
View file

@ -0,0 +1,21 @@
# Declare the default target
.DEFAULT_GOAL := run
# Define the targets
build-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:
cargo run
make-potfile:
xtr src/main.rs -o po/boxbuddy.pot
# Declare a phony target for clean
.PHONY: clean
clean:
rm -rf build-dir/*
rm -rf target/*

View file

@ -1,2 +0,0 @@
#!/bin/bash
flatpak-builder --repo=repo build-dir io.github.dvlv.boxbuddyrs.json --force-clean

View file

@ -1,3 +0,0 @@
#!/bin/bash
flatpak-builder --repo=repo --force-clean build-dir io.github.dvlv.boxbuddyrs.json
flatpak build-bundle repo boxbuddy.flatpak io.github.dvlv.boxbuddyrs