snap.mk
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 23 Oct 2023 10:40:39 +0200
changeset 126 a7809f76f626
parent 123 032aaa29f498
permissions -rw-r--r--
GitHub CI: beremiz revsion bump
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     1
# Snap distribution
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     2
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     3
main_target: Snap
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     4
123
032aaa29f498 Add Python3 in Snap build + doc fixes
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 87
diff changeset
     5
DIST_FROM_SOURCE_PROJECTS=canfestival Modbus open62541
032aaa29f498 Add Python3 in Snap build + doc fixes
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 87
diff changeset
     6
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     7
tar_opts=--absolute-names --exclude=.hg --exclude=.git --exclude=.*.pyc --exclude=.*.swp
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     8
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
     9
Snap: snap_built
81
a95b2fa896e9 SNAP: add SVGHMI and OPC-UA dependencies
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 79
diff changeset
    10
snap_built: all_sources revisions.txt
87
3682a91e7bb2 Fix generation of revisions.txt in makefile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
    11
	tar -C $(src) $(tar_opts) -c snap | tar -C sources -x
3682a91e7bb2 Fix generation of revisions.txt in makefile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 81
diff changeset
    12
	cp revisions.txt sources
79
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    13
	cd sources;  snapcraft --debug 
a8b434605895 Add Snap Package.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff changeset
    14
	touch $@