| 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 |
|
|---|
| 16 | SUBDIRS = \
|
|---|
| 17 | lib \
|
|---|
| 18 | cmd \
|
|---|
| 19 | doc \
|
|---|
| 20 | dist \
|
|---|
| 21 | $(NULL)
|
|---|
| 22 |
|
|---|
| 23 | EXTRA_DIST = \
|
|---|
| 24 | all.dsp \
|
|---|
| 25 | synergy.dsw \
|
|---|
| 26 | synergy.xcode/project.pbxproj \
|
|---|
| 27 | examples/synergy.conf \
|
|---|
| 28 | $(NULL)
|
|---|
| 29 |
|
|---|
| 30 | MAINTAINERCLEANFILES = \
|
|---|
| 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 |
|
|---|
| 42 | PKG_FILES = \
|
|---|
| 43 | ChangeLog \
|
|---|
| 44 | README \
|
|---|
| 45 | cmd/synergyc/synergyc \
|
|---|
| 46 | cmd/synergys/synergys \
|
|---|
| 47 | examples/synergy.conf \
|
|---|
| 48 | $(NULL)
|
|---|
| 49 | PKG_DOC_FILES = \
|
|---|
| 50 | doc/PORTING \
|
|---|
| 51 | doc/*.html \
|
|---|
| 52 | doc/*.css \
|
|---|
| 53 | $(NULL)
|
|---|
| 54 | PKG_PROG_FILES = \
|
|---|
| 55 | synergyc \
|
|---|
| 56 | synergys \
|
|---|
| 57 | $(NULL)
|
|---|
| 58 |
|
|---|
| 59 | # build doxygen documentation
|
|---|
| 60 | doxygen:
|
|---|
| 61 | doxygen doc/doxygen.cfg
|
|---|
| 62 |
|
|---|
| 63 | # build RPMs
|
|---|
| 64 | RPMTOPDIR=/var/tmp/@PACKAGE@-@VERSION@
|
|---|
| 65 | dist-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
|
|---|
| 77 | dist-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.
|
|---|
| 83 | PKGTOPDIR=/var/tmp/@PACKAGE@-@VERSION@
|
|---|
| 84 | dist-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)
|
|---|