Skip to content

Instantly share code, notes, and snippets.

@bignaux
Last active October 19, 2016 12:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bignaux/5387f919d75dc4d6e4acfa3f8821262e to your computer and use it in GitHub Desktop.
Save bignaux/5387f919d75dc4d6e4acfa3f8821262e to your computer and use it in GitHub Desktop.
#PATH ?= $PWD/build:$PATH
RUNTIME ?= ./build/runtime
APPNAME ?= appimagetool
COMP ?= lz4
mksquashfs_options ?= -root-owned -noappend -comp $(COMP)
all: $(APPNAME).AppImage
.PHONY: all clean mrproper
.PRECIOUS: %.squashfs
%.AppImage: $(RUNTIME) %.squashfs
cat $< > $@ && chmod a+x $@
%.squashfs:
mksquashfs $(APPNAME).AppDir $@ $(mksquashfs_options)
clean:
rm -f $(APPNAME).squashfs
mrproper: clean
rm -f $(APPNAME).AppImage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment