File: Makefile.docupload

package info (click to toggle)
python-x2go 0.6.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,660 kB
  • sloc: python: 10,018; makefile: 217
file content (27 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# Makefile.docupload file - for python-x2go
# Copyright 2010-2023 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
SPHINX_APIDOC=sphinx-apidoc

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}/