File: Makefile.docupload

package info (click to toggle)
python-x2go 0.6.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 1,632 kB
  • sloc: python: 9,758; makefile: 216
file content (26 lines) | stat: -rw-r--r-- 683 bytes parent folder | download
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
#!/usr/bin/make -f
# Makefile.docupload file - for python-x2go
# Copyright 2010-2018 by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, GPLv3+ applies to this file

VERSION=`head -n1 debian/changelog | sed 's,.*(\(.*\)).*,\1,' | cut -d"-" -f1`
DOC_HOST=code.x2go.org
DOC_PATH=/srv/sites/x2go.org/code/doc/python-x2go
DOC_USER=x2go-admin

doc: docbuild docupload

clean:
	${MAKE} -C docs/ clean

apidoc:
	sphinx-apidoc -f -e -o docs/source/ x2go

docbuild: clean
	${MAKE} -C docs/ html SPHINXOPTS="-a -E"

docupdate:
	${MAKE} -C docs/ html

docupload: clean docbuild
	ssh -l${DOC_USER} ${DOC_HOST} rm -Rfv ${DOC_PATH}/*
	scp -r docs/build/html/* ${DOC_USER}@${DOC_HOST}:${DOC_PATH}/