EXTRA_DIST+= ${man_MANS}
-fedora:
- @rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
- @rm -f ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm
- @mkdir -p ~/rpmbuild/SOURCES/
- @mkdir -p ~/rpmbuild/RPMS/x86_64/
- @mkdir -p ~/rpmbuild/SRPMS/
- @cp libmemcached-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
- @rpmbuild -ba support/libmemcached.spec
- @cp ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm .
- @cp ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm .
-
-generic: support/libmemcached.spec
- @mkdir -p ~/rpmbuild/SOURCES/
- @mkdir -p ~/rpmbuild/RPMS/x86_64/
- @mkdir -p ~/rpmbuild/SRPMS/
- @rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
- @rm -f ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm
- @cp libmemcached-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
- @rpmbuild -ba support/libmemcached.spec
- @cp ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm .
- @cp ~/rpmbuild/RPMS/x86_64/libmemcached-devel-$(VERSION)*.rpm .
- @cp ~/rpmbuild/RPMS/x86_64/libmemcached-debuginfo-$(VERSION)*.rpm .
- @cp ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm .
-
-clean_rpm:
- @rm -f *.tar.gz
- @rm -f *.src.rpm
- @rm -f *.rpm
-
-rpm: clean_rpm man distcheck generic
-
-release: rpm
- @rpm --addsign libmemcached-$(VERSION)*.rpm .
- @rpm --checksig libmemcached-$(VERSION)*.rpm .
- @rpm --addsign libmemcached-devel-$(VERSION)*.rpm .
- @rpm --checksig libmemcached-devel-$(VERSION)*.rpm .
- @rpm --addsign libmemcached-debuginfo-$(VERSION)*.rpm .
- @rpm --checksig libmemcached-debuginfo-$(VERSION)*.rpm .
-
merge-clean:
@find ./ | $(GREP) \.gcda | xargs rm -f
@find ./ | $(GREP) \.gcno | xargs rm -f
AC_MSG_ERROR([Your system lacks a new enough C++ compiler])
fi
+# Adding support for libtest
+m4_include([libtest/yatl.m4])
+
m4_include([m4/memcached.m4])
m4_include([m4/memcached_sasl.m4])
m4_include([m4/gearmand.m4])
support/libmemcached.pc
support/libmemcached.spec
support/libmemcached-fc.spec
- libtest/version.h
])
AC_OUTPUT
# All paths should be given relative to the root
#
-EXTRA_DIST+= \
- libhashkit-1.0/configure.h.in
+EXTRA_DIST+= libhashkit-1.0/configure.h.in
+BUILT_SOURCES+= libhashkit-1.0/configure.h
nobase_include_HEADERS+= \
libhashkit-1.0/algorithm.h \
# included from Top Level Makefile.am
# All paths should be given relative to the root
-EXTRA_DIST+= \
- libmemcached-1.0/configure.h.in
+EXTRA_DIST+= libmemcached-1.0/configure.h.in
+BUILT_SOURCES+= libmemcached-1.0/configure.h
include libmemcached-1.0/struct/include.am
include libmemcached-1.0/types/include.am
include libmemcached-1.2/t/include.am
-EXTRA_DIST+= \
- libmemcached-1.2/configure.h.in
+BUILT_SOURCES+= libmemcached-1.2/configure.h
+EXTRA_DIST+= libmemcached-1.2/configure.h.in
nobase_include_HEADERS+= \
libmemcached-1.2/allocators.h \
# This is not a public interface yet.
-EXTRA_DIST+= \
- libmemcached-1.2/configure.h.in
+BUILT_SOURCES+= libmemcached-2.0/configure.h
-noinst_HEADERS+= \
- libmemcached-1.2/memcached.h
+EXTRA_DIST+= libmemcached-1.2/configure.h.in
+
+noinst_HEADERS+= libmemcached-1.2/memcached.h
@echo make check TESTS_ENVIRONMENT="\"$(DRD_COMMAND)\""
EXTRA_DIST+= libtest/run.gdb
+EXTRA_DIST+= libtest/version.h
CLEANFILES+= tmp_chroot/etc/*
CLEANFILES+= tmp_chroot/var/drizzle/*
CLEANFILES+= tmp_chroot/var/run/*
CLEANFILES+= tmp_chroot/var/tmp/*
+BUILT_SOURCES+= libtest/version.h
+
.PHONY: distclean-libtest-check
distclean-libtest-check:
-rm -rf tmp_chroot
noinst_HEADERS+= libtest/test.hpp
noinst_HEADERS+= libtest/tmpfile.hpp
noinst_HEADERS+= libtest/vchar.hpp
+noinst_HEADERS+= libtest/version.h
noinst_HEADERS+= libtest/visibility.h
noinst_HEADERS+= libtest/wait.h
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
+ *
+ * Data Differential YATL (i.e. libtest) library
*
- * Data Differential YATL (i.e. libtest) library
- *
- * Copyright (C) 2012 Data Differential, http://datadifferential.com/
+ * Copyright (C) 2011 Data Differential, http://datadifferential.com/
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
*
*/
+
#pragma once
-#define LIBTEST_VERSION_STRING "@VERSION@"
-#define LIBTEST_VERSION_HEX @HEX_VERSION@
+#define LIBTEST_VERSION @LIBTEST_VERSION@
+#define LIBTEST_VERSION_STRING "@LIBTEST_VERSION@"
--- /dev/null
+dnl Copyright (C) 2012 Data Differential, LLC.
+dnl This file is free software; Data Differential, LLC.
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+AC_SUBST([LIBTEST_VERSION], [1.0])
+AC_CONFIG_FILES([libtest/version.h])
--- /dev/null
+# vim:ft=automake
+
+rpm-build: support/$(PACKAGE).spec
+ @rm -f *.rpm
+ @rm -f ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-$(VERSION)*.rpm
+ @rm -f ~/rpmbuild/SRPMS/$(PACKAGE)-$(VERSION)*.rpm
+ @mkdir -p ~/rpmbuild/BUILD/
+ @mkdir -p ~/rpmbuild/RPMS/i386/
+ @mkdir -p ~/rpmbuild/RPMS/i686/
+ @mkdir -p ~/rpmbuild/RPMS/noarch/
+ @mkdir -p ~/rpmbuild/RPMS/x86_64/
+ @mkdir -p ~/rpmbuild/SOURCES/
+ @mkdir -p ~/rpmbuild/SPECS/
+ @mkdir -p ~/rpmbuild/SRPMS/
+ @cp $(PACKAGE)-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
+ @cp support/$(PACKAGE).init ~/rpmbuild/SOURCES/
+ @rpmbuild -ba support/$(PACKAGE).spec
+ @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-$(VERSION)*.rpm .
+ @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-devel-$(VERSION)*.rpm .
+ @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-debuginfo-$(VERSION)*.rpm .
+ @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-server-$(VERSION)*.rpm .
+ @cp ~/rpmbuild/SRPMS/$(PACKAGE)-$(VERSION)*.rpm .
+
+rpm-sign: rpm-build
+ @rpm --addsign *.rpm
+ @rpm --checksig *.rpm
+
+rpm: support/$(PACKAGE).spec man distcheck rpm-build
+
+release: rpm rpm-sign
+
+merge-clean:
+ @find ./ | $(GREP) \.moved | xargs rm -r -f
+ @find ./ | $(GREP) \.orig | xargs rm -f
+ @find ./ | $(GREP) \.rej | xargs rm -f
+ @find ./ | $(GREP) \~$$ | xargs rm -f
+ @echo "The follow files need to be removed or checked in:"
+ @bzr unknowns
+