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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
PYDOCTOR ?= pydoctor
TXT2MAN=man/txt2man
check:
-./test
-pyflakes landscape
checkcertificate:
-echo | openssl s_client -connect landscape.canonical.com:443 -CAfile /etc/ssl/certs/ca-certificates.crt
clean:
-find landscape -name \*.pyc -exec rm {} \;
-rm tags
-rm _trial_temp -rf
-rm docs/api -rf;
-rm man/\*.1 -rf
doc:
${PYDOCTOR} --make-html --html-output docs/api --add-package landscape
manpages:
${TXT2MAN} -P Landscape -t landscape-client < man/landscape-client.txt > man/landscape-client.1
${TXT2MAN} -P Landscape -t landscape-config < man/landscape-config.txt > man/landscape-config.1
${TXT2MAN} -P Landscape -t landscape-message < man/landscape-message.txt > man/landscape-message.1
package: manpages
@fakeroot debian/rules binary
@echo "\n\nYou remembered to update the changelog, right?\n\n"
SSH_USERNAME=`whoami`
SSH_HOST=people.ubuntu.com
PACKAGE_DIR=/home/jkakar/public_html/landscape
deploy:
ifneq (${PACKAGE},)
@echo "Copying ${PACKAGE} to $(SSH_HOST):$(PACKAGE_DIR)"
@scp ${PACKAGE} $(SSH_USERNAME)@$(SSH_HOST):$(PACKAGE_DIR)
@echo "\nScanning packages and recreating the Packages file."
@ssh -l $(SSH_USERNAME) $(SSH_HOST) \
"cd $(PACKAGE_DIR) " \
"&& dpkg-scanpackages . /dev/null > Packages " \
"&& gzip -f Packages"
else
@echo "You need to specify PACKAGE, as in: make deploy PACKAGE=<name>"
endif
MESSAGE_DIR = `pwd`/runclient-messages
LOG_FILE = `pwd`/runclient.log
freshdata:
-sudo rm -rf $(MESSAGE_DIR)
-sudo mkdir $(MESSAGE_DIR)
run:
-sudo ./landscape-client \
-a onward -t "John's PC" \
-u http://localhost:8080/message-system \
-d $(MESSAGE_DIR) \
--urgent-exchange-interval=5 \
--log-level=debug \
--ping-url=http://localhost:8081/ping \
freshrun: freshdata run
tags:
-ctags --languages=python -R .
.PHONY: tags
|