File: Makefile.docupload

package info (click to toggle)
pyhoca-cli 0.6.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: python: 962; makefile: 27
file content (19 lines) | stat: -rw-r--r-- 588 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
# Makefile.docupload file - for pyhoca-cli
# Copyright 2010-2023 by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, AGPLv3+ 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/packages/doc/pyhoca-cli/man/
DOC_USER=x2go-admin

doc: docbuild docupload

docbuild:
	make -f Makefile.man2html build_man2html

docupload:
	ssh -l${DOC_USER} ${DOC_HOST} "{ mkdir -p ${DOC_PATH}; rm -Rfv ${DOC_PATH}/*; }"
	scp -r .build_man2html/html/* ${DOC_USER}@${DOC_HOST}:${DOC_PATH}/