2002-08-02 23:57:46 +04:00
|
|
|
# synergy -- mouse and keyboard sharing utility
|
|
|
|
# Copyright (C) 2002 Chris Schoeneman
|
|
|
|
#
|
|
|
|
# This package is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# found in the file COPYING that should have accompanied this file.
|
|
|
|
#
|
|
|
|
# This package is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
2002-06-18 23:44:34 +04:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
NULL =
|
|
|
|
|
2004-05-15 23:41:46 +04:00
|
|
|
SUBDIRS = \
|
|
|
|
lib \
|
|
|
|
cmd \
|
2004-08-01 20:00:18 +04:00
|
|
|
doc \
|
2004-05-15 23:41:46 +04:00
|
|
|
dist \
|
2002-07-31 20:27:06 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2004-05-15 23:41:46 +04:00
|
|
|
EXTRA_DIST = \
|
|
|
|
all.dsp \
|
|
|
|
synergy.dsw \
|
|
|
|
synergy.xcode/project.pbxproj \
|
|
|
|
examples/synergy.conf \
|
2002-07-31 20:57:26 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2004-05-15 23:41:46 +04:00
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
Makefile.in \
|
|
|
|
aclocal.m4 \
|
|
|
|
config.h \
|
|
|
|
config.h.in \
|
|
|
|
config.log \
|
|
|
|
config.status \
|
|
|
|
configure \
|
|
|
|
stamp-h.in \
|
|
|
|
stamp-h1 \
|
2002-06-18 23:44:34 +04:00
|
|
|
$(NULL)
|
2002-07-31 21:40:36 +04:00
|
|
|
|
2004-05-15 23:41:46 +04:00
|
|
|
PKG_FILES = \
|
|
|
|
ChangeLog \
|
|
|
|
README \
|
|
|
|
cmd/synergyc/synergyc \
|
|
|
|
cmd/synergys/synergys \
|
|
|
|
examples/synergy.conf \
|
2003-01-18 13:49:13 +03:00
|
|
|
$(NULL)
|
2004-08-01 20:00:18 +04:00
|
|
|
PKG_DOC_FILES = \
|
|
|
|
doc/PORTING \
|
|
|
|
doc/*.html \
|
|
|
|
doc/*.css \
|
|
|
|
$(NULL)
|
2004-05-15 23:41:46 +04:00
|
|
|
PKG_PROG_FILES = \
|
|
|
|
synergyc \
|
|
|
|
synergys \
|
2003-01-18 13:49:13 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2002-07-31 21:40:36 +04:00
|
|
|
# build doxygen documentation
|
|
|
|
doxygen:
|
|
|
|
doxygen doc/doxygen.cfg
|
2002-08-02 21:57:54 +04:00
|
|
|
|
|
|
|
# build RPMs
|
|
|
|
RPMTOPDIR=/var/tmp/@PACKAGE@-@VERSION@
|
|
|
|
dist-rpm: dist
|
|
|
|
rm -rf $(RPMTOPDIR)
|
|
|
|
mkdir $(RPMTOPDIR)
|
|
|
|
(cd $(RPMTOPDIR); mkdir BUILD SOURCES SPECS SRPMS RPMS)
|
|
|
|
cp @PACKAGE@-@VERSION@.tar.gz $(RPMTOPDIR)/SOURCES
|
|
|
|
rpm --define '_topdir $(RPMTOPDIR)' -ba dist/rpm/synergy.spec && \
|
|
|
|
mv -f $(RPMTOPDIR)/SRPMS/*.rpm . && \
|
|
|
|
mv -f $(RPMTOPDIR)/RPMS/*/*.rpm . && \
|
|
|
|
rm -rf $(RPMTOPDIR)
|
2002-08-11 15:50:49 +04:00
|
|
|
|
|
|
|
# build zip
|
|
|
|
# FIXME -- have automake generate this rule for us
|
|
|
|
dist-zip: distdir
|
|
|
|
zip -r $(distdir).zip $(distdir)
|
|
|
|
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
|
2003-01-18 13:49:13 +03:00
|
|
|
|
|
|
|
# build binary package. owner/group of packaged files will be
|
|
|
|
# owner/group of user running make.
|
|
|
|
PKGTOPDIR=/var/tmp/@PACKAGE@-@VERSION@
|
|
|
|
dist-pkg: all
|
|
|
|
rm -rf $(PKGTOPDIR)
|
|
|
|
mkdir $(PKGTOPDIR)
|
|
|
|
mkdir $(PKGTOPDIR)/@PACKAGE@-@VERSION@
|
2004-08-01 20:00:18 +04:00
|
|
|
mkdir $(PKGTOPDIR)/@PACKAGE@-@VERSION@/doc
|
2003-01-18 13:49:13 +03:00
|
|
|
cp $(PKG_FILES) $(PKGTOPDIR)/@PACKAGE@-@VERSION@
|
2004-08-01 20:00:18 +04:00
|
|
|
cp $(PKG_DOC_FILES) $(PKGTOPDIR)/@PACKAGE@-@VERSION@/doc
|
2003-01-18 13:49:13 +03:00
|
|
|
(cd $(PKGTOPDIR)/@PACKAGE@-@VERSION@; \
|
|
|
|
chmod 644 *; \
|
2004-08-01 20:31:47 +04:00
|
|
|
chmod 755 doc $(PKG_PROG_FILES); \
|
2003-01-18 13:49:13 +03:00
|
|
|
strip $(PKG_PROG_FILES) )
|
|
|
|
type=`uname -s -m | tr '[A-Z] ' '[a-z].'`; \
|
|
|
|
(cd $(PKGTOPDIR); tar cf - @PACKAGE@-@VERSION@ | \
|
|
|
|
gzip - ) > @PACKAGE@-@VERSION@-1.$${type}.tar.gz && \
|
|
|
|
rm -rf $(PKGTOPDIR)
|