move scripts into Makefile
This commit is contained in:
parent
ba1663ed44
commit
f2c3769120
3 changed files with 21 additions and 5 deletions
21
Makefile
Normal file
21
Makefile
Normal 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/*
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
flatpak-builder --repo=repo build-dir io.github.dvlv.boxbuddyrs.json --force-clean
|
|
@ -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
|
Loading…
Reference in a new issue