forked from OpenCPN/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 702 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# Makefile to create ocpn-plugins.xml.
#
# Needs python >= 3.4 available as the command python. Should
# otherwise work on all platforms but only tested on Linux.
#
# The validate target requires xmllint found in packages like
# xsltproc or libxslt
all: ocpn-plugins.xml
VERSION ?= $(shell git rev-parse --short HEAD)
ocpn-plugins.xml: metadata/*.xml Makefile
python3 tools/ocpn-metadata generate --force --destfile $@ \
--userdir metadata --version $(VERSION)
clean:
rm -f ocpn-plugins.xml
validate: ocpn-plugins.xml Makefile
xmllint --schema ocpn-plugins.xsd ocpn-plugins.xml --noout
check-urls: ocpn-plugins.xml Makefile
python tools/check-metadata-urls ocpn-plugins.xml