Skip to content

Commit

Permalink
Install using gprinstall
Browse files Browse the repository at this point in the history
This will allow using `alr install`, when next Alire version is released.
  • Loading branch information
mgrojo committed Mar 20, 2023
1 parent f7bae7a commit 54f7757
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ all:
alr build

install: all
mkdir -p $(DESTDIR)/bin
cp -rp $(MAIN).desktop themes $(DESTDIR)
cp -p bin/$(MAIN) $(DESTDIR)/bin
alr exec -P -- gprinstall --prefix=$(DESTDIR) --create-missing-dirs --mode=usage -f
cp -p themes/1/icon.png $(DESTDIR)/$(MAIN).png

AppImage:
Expand Down
4 changes: 4 additions & 0 deletions play_2048.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ project Play_2048 is
"-O2");
end Compiler;

package Install is
for Artifacts (".") use ("themes", "play_2048.desktop");
end Install;

end Play_2048;

0 comments on commit 54f7757

Please sign in to comment.