snap.mk
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sun, 31 Jul 2022 16:43:25 +0200
changeset 79 a8b434605895
child 81 a95b2fa896e9
permissions -rw-r--r--
Add Snap Package.

For now :
- using makefile :
$ cd ~/build; make -f ~/src/beremiz_public_dist/Makefile DIST=snap
- build and run of python exemple was tested
- no fieldbus support yet.
# Snap distribution

main_target: Snap

OWN_PROJECTS_EX=canfestival

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

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