snap.mk
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sat, 13 Aug 2022 17:26:17 +0200
changeset 90 ab4e99dc80cb
parent 87 3682a91e7bb2
child 123 032aaa29f498
permissions -rw-r--r--
GH CD: Merge sources and snap dir instead of just giving checkout and artfifact download the same path
# Snap distribution

main_target: Snap

tar_opts=--absolute-names --exclude=.hg --exclude=.git --exclude=.*.pyc --exclude=.*.swp

Snap: snap_built
snap_built: all_sources revisions.txt
	tar -C $(src) $(tar_opts) -c snap | tar -C sources -x
	cp revisions.txt sources
	cd sources;  snapcraft --debug 
	touch $@