~ubuntu-branches/ubuntu/natty/synergy/natty

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Lutz
  • Date: 2003-10-31 19:36:30 UTC
  • Revision ID: james.westby@ubuntu.com-20031031193630-knbv79x5az7qh49y
Tags: upstream-1.0.14
ImportĀ upstreamĀ versionĀ 1.0.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# synergy -- mouse and keyboard sharing utility
 
2
# Copyright (C) 2002 Chris Schoeneman
 
3
 
4
# This package is free software; you can redistribute it and/or
 
5
# modify it under the terms of the GNU General Public License
 
6
# found in the file COPYING that should have accompanied this file.
 
7
 
8
# This package is distributed in the hope that it will be useful,
 
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
# GNU General Public License for more details.
 
12
 
 
13
## Process this file with automake to produce Makefile.in
 
14
NULL =
 
15
DEPTH = .
 
16
VDEPTH = ./$(VPATH)
 
17
 
 
18
SUBDIRS =                                       \
 
19
        lib                                             \
 
20
        cmd                                             \
 
21
        dist                                    \
 
22
        $(NULL)
 
23
 
 
24
EXTRA_DIST =                            \
 
25
        BUGS                                    \
 
26
        FAQ                                             \
 
27
        HISTORY                                 \
 
28
        PORTING                                 \
 
29
        TODO                                    \
 
30
        all.dsp                                 \
 
31
        synergy.dsw                             \
 
32
        doc/doxygen.cfg.in              \
 
33
        examples/synergy.conf   \
 
34
        $(NULL)
 
35
 
 
36
MAINTAINERCLEANFILES =          \
 
37
        Makefile.in                             \
 
38
        aclocal.m4                              \
 
39
        config.h                                \
 
40
        config.h.in                             \
 
41
        config.log                              \
 
42
        config.status                   \
 
43
        configure                               \
 
44
        stamp-h.in                              \
 
45
        stamp-h1                                \
 
46
        doc/doxygen.cfg                 \
 
47
        doc/doxygen/html/*              \
 
48
        $(NULL)
 
49
 
 
50
PKG_FILES =                                     \
 
51
        AUTHORS                                 \
 
52
        BUGS                                    \
 
53
        COPYING                                 \
 
54
        ChangeLog                               \
 
55
        FAQ                                             \
 
56
        HISTORY                                 \
 
57
        INSTALL                                 \
 
58
        NEWS                                    \
 
59
        README                                  \
 
60
        TODO                                    \
 
61
        cmd/synergyc/synergyc   \
 
62
        cmd/synergys/synergys   \
 
63
        examples/synergy.conf   \
 
64
        $(NULL)
 
65
PKG_PROG_FILES =                        \
 
66
        synergyc                                \
 
67
        synergys                                \
 
68
        $(NULL)
 
69
 
 
70
# build doxygen documentation
 
71
doxygen:
 
72
        doxygen doc/doxygen.cfg
 
73
 
 
74
# build RPMs
 
75
RPMTOPDIR=/var/tmp/@PACKAGE@-@VERSION@
 
76
dist-rpm: dist
 
77
        rm -rf $(RPMTOPDIR)
 
78
        mkdir $(RPMTOPDIR)
 
79
        (cd $(RPMTOPDIR); mkdir BUILD SOURCES SPECS SRPMS RPMS)
 
80
        cp @PACKAGE@-@VERSION@.tar.gz $(RPMTOPDIR)/SOURCES
 
81
        rpm --define '_topdir $(RPMTOPDIR)' -ba dist/rpm/synergy.spec && \
 
82
                mv -f $(RPMTOPDIR)/SRPMS/*.rpm . && \
 
83
                mv -f $(RPMTOPDIR)/RPMS/*/*.rpm . && \
 
84
                rm -rf $(RPMTOPDIR)
 
85
 
 
86
# build zip
 
87
# FIXME -- have automake generate this rule for us
 
88
dist-zip: distdir
 
89
        zip -r $(distdir).zip $(distdir)
 
90
        -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
 
91
 
 
92
# build binary package.  owner/group of packaged files will be
 
93
# owner/group of user running make.
 
94
PKGTOPDIR=/var/tmp/@PACKAGE@-@VERSION@
 
95
dist-pkg: all
 
96
        rm -rf $(PKGTOPDIR)
 
97
        mkdir $(PKGTOPDIR)
 
98
        mkdir $(PKGTOPDIR)/@PACKAGE@-@VERSION@
 
99
        cp $(PKG_FILES) $(PKGTOPDIR)/@PACKAGE@-@VERSION@
 
100
        (cd $(PKGTOPDIR)/@PACKAGE@-@VERSION@; \
 
101
                chmod 644 *; \
 
102
                chmod 755 $(PKG_PROG_FILES); \
 
103
                strip $(PKG_PROG_FILES) )
 
104
        type=`uname -s -m | tr '[A-Z] ' '[a-z].'`; \
 
105
        (cd $(PKGTOPDIR); tar cf - @PACKAGE@-@VERSION@ | \
 
106
                gzip - ) > @PACKAGE@-@VERSION@-1.$${type}.tar.gz && \
 
107
        rm -rf $(PKGTOPDIR)