source: trunk/synergy/Makefile.am@ 2912

Last change on this file since 2912 was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 2.6 KB
Line 
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
14NULL =
15
16SUBDIRS = \
17 lib \
18 cmd \
19 doc \
20 dist \
21 $(NULL)
22
23EXTRA_DIST = \
24 all.dsp \
25 synergy.dsw \
26 synergy.xcode/project.pbxproj \
27 examples/synergy.conf \
28 $(NULL)
29
30MAINTAINERCLEANFILES = \
31 Makefile.in \
32 aclocal.m4 \
33 config.h \
34 config.h.in \
35 config.log \
36 config.status \
37 configure \
38 stamp-h.in \
39 stamp-h1 \
40 $(NULL)
41
42PKG_FILES = \
43 ChangeLog \
44 README \
45 cmd/synergyc/synergyc \
46 cmd/synergys/synergys \
47 examples/synergy.conf \
48 $(NULL)
49PKG_DOC_FILES = \
50 doc/PORTING \
51 doc/*.html \
52 doc/*.css \
53 $(NULL)
54PKG_PROG_FILES = \
55 synergyc \
56 synergys \
57 $(NULL)
58
59# build doxygen documentation
60doxygen:
61 doxygen doc/doxygen.cfg
62
63# build RPMs
64RPMTOPDIR=/var/tmp/@PACKAGE@-@VERSION@
65dist-rpm: dist
66 rm -rf $(RPMTOPDIR)
67 mkdir $(RPMTOPDIR)
68 (cd $(RPMTOPDIR); mkdir BUILD SOURCES SPECS SRPMS RPMS)
69 cp @PACKAGE@-@VERSION@.tar.gz $(RPMTOPDIR)/SOURCES
70 rpm --define '_topdir $(RPMTOPDIR)' -ba dist/rpm/synergy.spec && \
71 mv -f $(RPMTOPDIR)/SRPMS/*.rpm . && \
72 mv -f $(RPMTOPDIR)/RPMS/*/*.rpm . && \
73 rm -rf $(RPMTOPDIR)
74
75# build zip
76# FIXME -- have automake generate this rule for us
77dist-zip: distdir
78 zip -r $(distdir).zip $(distdir)
79 -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
80
81# build binary package. owner/group of packaged files will be
82# owner/group of user running make.
83PKGTOPDIR=/var/tmp/@PACKAGE@-@VERSION@
84dist-pkg: all
85 rm -rf $(PKGTOPDIR)
86 mkdir $(PKGTOPDIR)
87 mkdir $(PKGTOPDIR)/@PACKAGE@-@VERSION@
88 mkdir $(PKGTOPDIR)/@PACKAGE@-@VERSION@/doc
89 cp $(PKG_FILES) $(PKGTOPDIR)/@PACKAGE@-@VERSION@
90 cp $(PKG_DOC_FILES) $(PKGTOPDIR)/@PACKAGE@-@VERSION@/doc
91 (cd $(PKGTOPDIR)/@PACKAGE@-@VERSION@; \
92 chmod 644 *; \
93 chmod 755 doc $(PKG_PROG_FILES); \
94 strip $(PKG_PROG_FILES) )
95 type=`uname -s -m | tr '[A-Z] ' '[a-z].'`; \
96 (cd $(PKGTOPDIR); tar cf - @PACKAGE@-@VERSION@ | \
97 gzip - ) > @PACKAGE@-@VERSION@-1.$${type}.tar.gz && \
98 rm -rf $(PKGTOPDIR)
Note: See TracBrowser for help on using the repository browser.