mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-23 20:12:39 +03:00
75603c25f9
a tar gzip file. This is to ease distribution of the binaries on systems without a packaging system supported by synergy (which currently supports only RPM).
108 lines
2.5 KiB
Makefile
108 lines
2.5 KiB
Makefile
# 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.
|
|
|
|
## Process this file with automake to produce Makefile.in
|
|
NULL =
|
|
DEPTH = .
|
|
VDEPTH = ./$(VPATH)
|
|
|
|
SUBDIRS = \
|
|
lib \
|
|
cmd \
|
|
dist \
|
|
$(NULL)
|
|
|
|
EXTRA_DIST = \
|
|
BUGS \
|
|
FAQ \
|
|
HISTORY \
|
|
PORTING \
|
|
TODO \
|
|
all.dsp \
|
|
synergy.dsw \
|
|
doc/doxygen.cfg.in \
|
|
examples/synergy.conf \
|
|
$(NULL)
|
|
|
|
MAINTAINERCLEANFILES = \
|
|
Makefile.in \
|
|
aclocal.m4 \
|
|
config.h \
|
|
config.h.in \
|
|
config.log \
|
|
config.status \
|
|
configure \
|
|
stamp-h.in \
|
|
stamp-h1 \
|
|
doc/doxygen.cfg \
|
|
doc/doxygen/html/* \
|
|
$(NULL)
|
|
|
|
PKG_FILES = \
|
|
AUTHORS \
|
|
BUGS \
|
|
COPYING \
|
|
ChangeLog \
|
|
FAQ \
|
|
HISTORY \
|
|
INSTALL \
|
|
NEWS \
|
|
README \
|
|
TODO \
|
|
cmd/synergyc/synergyc \
|
|
cmd/synergys/synergys \
|
|
examples/synergy.conf \
|
|
$(NULL)
|
|
PKG_PROG_FILES = \
|
|
synergyc \
|
|
synergys \
|
|
$(NULL)
|
|
|
|
# build doxygen documentation
|
|
doxygen:
|
|
doxygen doc/doxygen.cfg
|
|
|
|
# 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)
|
|
|
|
# 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)
|
|
|
|
# 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@
|
|
cp $(PKG_FILES) $(PKGTOPDIR)/@PACKAGE@-@VERSION@
|
|
(cd $(PKGTOPDIR)/@PACKAGE@-@VERSION@; \
|
|
chmod 644 *; \
|
|
chmod 755 $(PKG_PROG_FILES); \
|
|
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)
|