~ahasenack/landscape-client/landscape-client-1.5.5-0ubuntu0.9.04.0

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Rick Clark
  • Date: 2008-09-08 16:35:57 UTC
  • mto: This revision was merged to the branch mainline in revision 2.
  • Revision ID: james.westby@ubuntu.com-20080908163557-fl0d2oc35hur473w
Tags: upstream-1.0.18
ImportĀ upstreamĀ versionĀ 1.0.18

Show diffs side-by-side

added added

removed removed

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