Skip to content
Snippets Groups Projects
Commit c65b02cc authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Re-organize for distrubution build

parent c1a2ba08
No related branches found
No related tags found
No related merge requests found
Showing
with 19 additions and 2 deletions
/repo
/.state
*~ *~
File moved
TARGET=se.lth.control.mbed-cli TARGET=se.lth.control.mbed-cli
FLATHUB_REPO="https://flathub.org/repo/flathub.flatpakrepo" FLATHUB_REPO="https://flathub.org/repo/flathub.flatpakrepo"
COLLECTION_ID=se.lth.control
STATE_DIR=
REPO=
.PHONY : build .PHONY : build
build: auto-ignore-installed.json\ build: setup \
auto-ignore-installed.json\
auto-simple.json \ auto-simple.json \
manual-util-linux.json \ manual-util-linux.json \
manual-arm-none-eabi-binutils.json \ manual-arm-none-eabi-binutils.json \
...@@ -13,9 +17,20 @@ build: auto-ignore-installed.json\ ...@@ -13,9 +17,20 @@ build: auto-ignore-installed.json\
manual-git.json \ manual-git.json \
manual-build-files.json \ manual-build-files.json \
manual-mbed-cli-wrap.json manual-mbed-cli-wrap.json
flatpak-builder --force-clean build $(TARGET).json flatpak-builder --force-clean \
${COLLECTION_ID:%=--collection-id %} \
${STATE_DIR:%=--state-dir %} \
${REPO:%=--repo %} \
build $(TARGET).json
PHONY: install
install: build
flatpak-builder --user --install --force-clean build/ $(TARGET).json flatpak-builder --user --install --force-clean build/ $(TARGET).json
.PHONY: uninstall
uninstall:
flatpak uninstall -y $(TARGET)
.PHONY: setup .PHONY: setup
setup: setup:
flatpak remote-add --if-not-exists flathub $(FLATHUB_REPO) flatpak remote-add --if-not-exists flathub $(FLATHUB_REPO)
......
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment