Makefile.am revision e7311aec8d691e5427317442387af1bc8fff3742
967e5f3c25249c779575864692935627004d3f9eChristian MaederDISTCHECK_CONFIGURE_FLAGS = --with-ldb-lib-dir="$$dc_install_base"/lib/ldb \
967e5f3c25249c779575864692935627004d3f9eChristian Maeder --enable-all-experimental-features
967e5f3c25249c779575864692935627004d3f9eChristian Maederif HAVE_MANPAGES
f3a94a197960e548ecd6520bb768cb0d547457bbChristian Maeder# Some old versions of automake don't define builddir
967e5f3c25249c779575864692935627004d3f9eChristian MaederDOXYGEN = @DOXYGEN@
967e5f3c25249c779575864692935627004d3f9eChristian MaederDISTSETUPOPTS =
967e5f3c25249c779575864692935627004d3f9eChristian Maederif HAVE_DEBIAN
fd896e2068ad7e50aed66ac18c3720ea7ff2619fChristian MaederDISTSETUPOPTS += --install-layout=deb
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maedersssdlibexecdir = $(libexecdir)/sssd
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maedersssdlibdir = $(libdir)/sssd
ac19f8695aa1b2d2d1cd1319da2530edd8f46a96Christian Maederldblibdir = @ldblibdir@
8b9fda012e5ee53b7b2320c0638896a0ff6e99f3Christian Maederif BUILD_KRB5_LOCATOR_PLUGIN
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maederkrb5plugindir = @krb5pluginpath@
e1839fb37a3a2ccd457464cb0dcc5efd466dbe22Christian Maedersssdconfdir = $(sysconfdir)/sssd
4ef2a978e66e2246ff0b7f00c77deb7aabb28b8eChristian Maedersssddatadir = $(datadir)/sssd
551af0e4ba6d96bb24f3555f3b30ed648e22e34aChristian Maedersssdapiplugindir = $(sssddatadir)/sssd.api.d
fd896e2068ad7e50aed66ac18c3720ea7ff2619fChristian Maederdbusintrospectdir = $(datarootdir)/sssd/introspect
967e5f3c25249c779575864692935627004d3f9eChristian Maederlocaledir = @localedir@
8e9c3881fb6e710b1e08bf5ac8ff9d393df2e74eChristian Maedernsslibdir = @nsslibdir@
78eeae099616e255ccf2e5f9122387bb10c68338Christian Maederpamlibdir = @pammoddir@
ad187062b0009820118c1b773a232e29b879a2faChristian Maederautofslibdir = @appmodpath@
fd896e2068ad7e50aed66ac18c3720ea7ff2619fChristian Maederdbpath = @dbpath@
551af0e4ba6d96bb24f3555f3b30ed648e22e34aChristian Maederpluginpath = @pluginpath@
551af0e4ba6d96bb24f3555f3b30ed648e22e34aChristian Maederpidpath = @pidpath@
551af0e4ba6d96bb24f3555f3b30ed648e22e34aChristian Maederpipepath = @pipepath@
551af0e4ba6d96bb24f3555f3b30ed648e22e34aChristian Maederinitdir = @initdir@
551af0e4ba6d96bb24f3555f3b30ed648e22e34aChristian Maedersystemdunitdir = @systemdunitdir@
551af0e4ba6d96bb24f3555f3b30ed648e22e34aChristian Maederlogpath = @logpath@
551af0e4ba6d96bb24f3555f3b30ed648e22e34aChristian Maederpubconfpath = @pubconfpath@
551af0e4ba6d96bb24f3555f3b30ed648e22e34aChristian Maederpkgconfigdir = $(libdir)/pkgconfig
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maederkrb5rcachedir = @krb5rcachedir@
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maedersudolibdir = @appmodpath@
1a75698c909ad515d59c76e65bd783f015c21c4dChristian MaederUNICODE_LIBS=@UNICODE_LIBS@
51fb5d7edd9369c367dda2f8b15ddd6f8a146606Christian Maederif WANT_AUX_INFO
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder AM_CFLAGS += -aux-info $@.X
67d92da5e9610aabad39055a16031154b4dc3748Christian Maeder AM_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
67d92da5e9610aabad39055a16031154b4dc3748Christian Maeder -Wcast-qual -Wcast-align -Wwrite-strings \
67d92da5e9610aabad39055a16031154b4dc3748Christian Maeder -Werror-implicit-function-declaration \
67d92da5e9610aabad39055a16031154b4dc3748Christian Maeder -fno-strict-aliasing
67d92da5e9610aabad39055a16031154b4dc3748Christian Maederdist_pkgconfig_DATA =
67d92da5e9610aabad39055a16031154b4dc3748Christian MaederACLOCAL_AMFLAGS = -I m4 -I .
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maedersbin_PROGRAMS = \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder sss_useradd \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder sss_userdel \
67d92da5e9610aabad39055a16031154b4dc3748Christian Maeder sss_groupadd \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder sss_groupdel \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder sss_usermod \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder sss_groupmod \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder sss_groupshow \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder sss_debuglevel
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maedersssdlibexec_PROGRAMS = \
a89389521ddf76109168a0b339031575aafbd512Christian Maedersssdlibexec_PROGRAMS += sssd_sudo
a89389521ddf76109168a0b339031575aafbd512Christian Maederif BUILD_AUTOFS
a89389521ddf76109168a0b339031575aafbd512Christian Maedersssdlibexec_PROGRAMS += sssd_autofs
a89389521ddf76109168a0b339031575aafbd512Christian Maedersssdlibexec_PROGRAMS += sssd_ssh
9b30898b139ee02f97ac933b6d935ef0a4206921Christian Maeder non_interactive_check_based_tests = \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder sysdb-tests \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder strtonum-tests \
67d92da5e9610aabad39055a16031154b4dc3748Christian Maeder resolv-tests \
51fb5d7edd9369c367dda2f8b15ddd6f8a146606Christian Maeder krb5-utils-tests \
e1839fb37a3a2ccd457464cb0dcc5efd466dbe22Christian Maeder check_and_open-tests \
67d92da5e9610aabad39055a16031154b4dc3748Christian Maeder files-tests \
b66eb6038bfbcd2fe520d87c151bb4f1f510e985Christian Maeder refcount-tests \
51fb5d7edd9369c367dda2f8b15ddd6f8a146606Christian Maeder fail_over-tests \
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maeder find_uid-tests \
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maeder ipa_ldap_opt-tests \
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maeder simple_access-tests \
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maeder crypto-tests \
51fb5d7edd9369c367dda2f8b15ddd6f8a146606Christian Maeder debug-tests \
e7ce154edb906685b3fa7f6c0a764e18a4658068Christian Maeder ipa_hbac-tests
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maedercheck_PROGRAMS = \
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maeder stress-tests \
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maeder $(non_interactive_check_based_tests)
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian MaederPYTHON_TESTS =
ee93fb771fcf3000d73c8e2f2000adb4b9a5158cChristian Maederif BUILD_PYTHON_BINDINGS
67086e0fe40a985c5e8a3cf50e611f43234580c2Christian MaederPYTHON_TESTS += $(srcdir)/src/config/SSSDConfigTest.py \
d48085f765fca838c1d972d2123601997174583dChristian Maeder $(PYTHON_TESTS) \
717686b54b9650402e2ebfbaadf433eab8ba5171Christian Maeder $(non_interactive_check_based_tests)
d48085f765fca838c1d972d2123601997174583dChristian Maedersssdlib_LTLIBRARIES = \
9b30898b139ee02f97ac933b6d935ef0a4206921Christian Maederldblib_LTLIBRARIES = \
b66eb6038bfbcd2fe520d87c151bb4f1f510e985Christian Maederif BUILD_KRB5_LOCATOR_PLUGIN
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maederkrb5plugin_LTLIBRARIES = \
b66eb6038bfbcd2fe520d87c151bb4f1f510e985Christian Maedernoinst_LTLIBRARIES = \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder SSS_CRYPT_SOURCES = src/util/crypto/nss/nss_base64.c \
f11f713bebd8e1e623a0a4361065df256033de47Christian Maeder SSS_CRYPT_CFLAGS = $(NSS_CFLAGS)
0a8ea95bcf0e3f84fed0b725c049ec2a956a4a28Christian Maeder SSS_CRYPT_LIBS = $(NSS_LIBS)
18b513ff41708f24e1a7407f36b719add813ffeaChristian Maeder SSS_CRYPT_SOURCES = src/util/crypto/libcrypto/crypto_base64.c \
dedabc954aa15f6ad0764472a9434dc6dafe3db2Christian Maeder src/util/crypto/libcrypto/crypto_sha512crypt.c \
a89e661aad28f1b39f4fc9f9f9a4d46074234123Christian Maeder src/util/crypto/libcrypto/crypto_obfuscate.c
a23e572c8f957cc051a1b0831abd6fe9380d45c7Christian Maeder SSS_CRYPT_CFLAGS = $(CRYPTO_CFLAGS)
58b5ac21d1c88344246aaedab0c0bdc7b759d7c6Christian Maeder SSS_CRYPT_LIBS = $(CRYPTO_LIBS)
58b5ac21d1c88344246aaedab0c0bdc7b759d7c6Christian Maederlibsss_crypt_la_SOURCES = \
f2ee9fc53048ea92bad79e3f5d292d83efd7f8beMihai Codescu $(SSS_CRYPT_SOURCES)
3c8d067accf18572352351ec42ff905c7297a8a5Christian Maederlibsss_crypt_la_CFLAGS = \
81d182b21020b815887e9057959228546cf61b6bChristian Maeder $(SSS_CRYPT_CFLAGS) \
58b5ac21d1c88344246aaedab0c0bdc7b759d7c6Christian Maeder $(DHASH_CFLAGS)
242397ba0f1cc490e892130bf0df239deeecf5daChristian Maederlibsss_crypt_la_LIBADD = \
2e9985cd67e4f2414becb670ef33b8f16513e41dChristian Maeder $(SSS_CRYPT_LIBS)
58b5ac21d1c88344246aaedab0c0bdc7b759d7c6Christian Maederif BUILD_PYTHON_BINDINGS
d769b9ca726a9b50d661847c0e58c41d6ef334b4Christian Maederpyexec_LTLIBRARIES = \
d769b9ca726a9b50d661847c0e58c41d6ef334b4Christian Maederdist_noinst_SCRIPTS = \
d769b9ca726a9b50d661847c0e58c41d6ef334b4Christian Maeder $(EXTRA_SCRIPTS) \
dedabc954aa15f6ad0764472a9434dc6dafe3db2Christian Maederdist_noinst_DATA = \
588c0c022a0f4e129a89c3bc569daf6a835e182dChristian Maeder src/config/testconfigs/sssd-noversion.conf \
588c0c022a0f4e129a89c3bc569daf6a835e182dChristian Maeder src/config/testconfigs/sssd-badversion.conf \
bfa9e03532243ceb487f0384d0f6a447f1ce7670Till Mossakowski src/config/testconfigs/sssd-invalid-badbool.conf
967e5f3c25249c779575864692935627004d3f9eChristian Maeder###############################
f2ee9fc53048ea92bad79e3f5d292d83efd7f8beMihai Codescu# Global compilation settings #
967e5f3c25249c779575864692935627004d3f9eChristian Maeder###############################
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian MaederAM_CPPFLAGS = \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder -I$(srcdir)/include \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder -I$(srcdir)/src \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(POPT_CFLAGS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(TALLOC_CFLAGS) \
967e5f3c25249c779575864692935627004d3f9eChristian Maeder $(TDB_CFLAGS) \
967e5f3c25249c779575864692935627004d3f9eChristian Maeder $(TEVENT_CFLAGS) \
ad187062b0009820118c1b773a232e29b879a2faChristian Maeder $(LDB_CFLAGS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(DBUS_CFLAGS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(PCRE_CFLAGS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(COLLECTION_CFLAGS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(INI_CONFIG_CFLAGS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(DHASH_CFLAGS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(LIBNL_CFLAGS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(OPENLDAP_CFLAGS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(GLIB2_CFLAGS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder -DLIBDIR=\"$(libdir)\" \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder -DVARDIR=\"$(localstatedir)\" \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder -DSHLIBEXT=\"$(SHLIBEXT)\" \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder -DSSSD_LIBEXEC_PATH=\"$(sssdlibexecdir)\" \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder -DSSSD_INTROSPECT_PATH=\"$(dbusinstropectdir)\" \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder -DSSSD_CONF_DIR=\"$(sssdconfdir)\" \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder -DSSS_NSS_SOCKET_NAME=\"$(pipepath)/nss\" \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder -DSSS_PAM_SOCKET_NAME=\"$(pipepath)/pam\" \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder -DSSS_PAM_PRIV_SOCKET_NAME=\"$(pipepath)/private/pam\" \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder -DSSS_SUDO_SOCKET_NAME=\"$(pipepath)/sudo\" \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder -DSSS_AUTOFS_SOCKET_NAME=\"$(pipepath)/autofs\" \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder -DSSS_SSH_SOCKET_NAME=\"$(pipepath)/ssh\" \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder -DLOCALEDIR=\"$(localedir)\"
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian MaederSSSD_RESPONDER_OBJ = \
ad187062b0009820118c1b773a232e29b879a2faChristian MaederSSSD_TOOLS_OBJ = \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian MaederSSSD_RESOLV_OBJ = \
9659c509ce5e78adc51d7b02a76274eddcba9338Christian Maederif BUILD_ARES_DATA
9659c509ce5e78adc51d7b02a76274eddcba9338Christian Maeder SSSD_RESOLV_OBJ += \
9659c509ce5e78adc51d7b02a76274eddcba9338Christian MaederSSSD_FAILOVER_OBJ = \
551af0e4ba6d96bb24f3555f3b30ed648e22e34aChristian Maeder $(SSSD_RESOLV_OBJ)
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder $(TALLOC_LIBS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(TEVENT_LIBS) \
83814002b4922114cbe7e9ba728472a0bf44aac5Christian Maeder $(POPT_LIBS) \
83814002b4922114cbe7e9ba728472a0bf44aac5Christian Maeder $(LDB_LIBS) \
a95f5379cabb30d3beb0545002cf50e9e4fc2c86Christian Maeder $(DBUS_LIBS) \
97ee7048e63953c5617342ce38c30cbcb35cc0beChristian Maeder $(PCRE_LIBS) \
97ee7048e63953c5617342ce38c30cbcb35cc0beChristian Maeder $(INI_CONFIG_LIBS) \
b66eb6038bfbcd2fe520d87c151bb4f1f510e985Christian Maeder $(COLLECTION_LIBS) \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder $(DHASH_LIBS) \
b66eb6038bfbcd2fe520d87c151bb4f1f510e985Christian Maeder $(SSS_CRYPT_LIBS) \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder $(OPENLDAP_LIBS) \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian MaederPYTHON_BINDINGS_LIBS = \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder $(TALLOC_LIBS) \
588c0c022a0f4e129a89c3bc569daf6a835e182dChristian Maeder $(TEVENT_LIBS) \
b66eb6038bfbcd2fe520d87c151bb4f1f510e985Christian Maeder $(POPT_LIBS) \
2dfc7b04f2db681992ca04175f2beb0f127c9844Christian Maeder $(LDB_LIBS) \
2dfc7b04f2db681992ca04175f2beb0f127c9844Christian Maeder $(DBUS_LIBS) \
1a75698c909ad515d59c76e65bd783f015c21c4dChristian Maeder $(PCRE_LIBS) \
dedabc954aa15f6ad0764472a9434dc6dafe3db2Christian Maeder $(DHASH_LIBS) \
ad187062b0009820118c1b773a232e29b879a2faChristian Maeder $(SSS_CRYPT_LIBS) \
ad187062b0009820118c1b773a232e29b879a2faChristian Maeder $(OPENLDAP_LIBS) \
588c0c022a0f4e129a89c3bc569daf6a835e182dChristian MaederTOOLS_LIBS = \
ad187062b0009820118c1b773a232e29b879a2faChristian Maeder $(TALLOC_LIBS) \
07b72edb610ee53b4832d132e96b0a3d8423f8ebChristian Maeder $(TEVENT_LIBS) \
dist_noinst_HEADERS += src/util/crypto/nss/nss_util.h
noinst_LTLIBRARIES += libsss_debug.la
noinst_LTLIBRARIES += libsss_child.la
libsss_child_la_SOURCES = src/util/child_common.c
noinst_LTLIBRARIES += libsss_util.la
libsss_util_la_SOURCES += src/db/sysdb_sudo.c
libsss_util_la_SOURCES += src/db/sysdb_ssh.c
lib_LTLIBRARIES = libipa_hbac.la
dist_pkgconfig_DATA += src/providers/ipa/ipa_hbac.pc
-Wl,--version-script,$(srcdir)/src/providers/sssd_be.exports \
ldb_mod_test_dir: memberof.la
cp $(builddir)/.libs/memberof.so $(builddir)/ldb_mod_test_dir
pam_test_client_SOURCES = src/sss_client/pam_test_client.c
autofs_test_client_SOURCES = src/sss_client/autofs/autofs_test_client.c \
nsslib_LTLIBRARIES = libnss_sss.la
-Wl,--version-script,$(srcdir)/src/sss_client/sss_nss.exports
pamlib_LTLIBRARIES = pam_sss.la
-Wl,--version-script,$(srcdir)/src/sss_client/sss_pam.exports
-Wl,--version-script,$(srcdir)/src/sss_client/sss_sudo.exports \
sudolib_LTLIBRARIES = libsss_sudo.la
dist_pkgconfig_DATA += src/sss_client/sudo/libsss_sudo.pc
autofslib_LTLIBRARIES = libsss_autofs.la
-Wl,--version-script,$(srcdir)/src/sss_client/autofs/sss_autofs.exports
dist_noinst_DATA += src/sss_client/sss_sudo.exports
dist_noinst_DATA += src/sss_client/autofs/sss_autofs.exports
libsss_ldap_la_SOURCES += src/providers/ldap/sdap_sudo_cache.c \
libsss_ldap_la_SOURCES += src/providers/ldap/sdap_autofs.c \
libsss_ipa_la_SOURCES += src/providers/ldap/sdap_sudo_cache.c \
libsss_ipa_la_SOURCES += src/providers/ldap/sdap_autofs.c \
libsss_ipa_la_SOURCES += src/providers/ipa/ipa_hostid.c
$(MAKE) -C src/man update-po
$(DOXYGEN) src/doxy.config
$(DOXYGEN) src/providers/ipa/ipa_hbac.doxy
$(DOXYGEN) src/sss_client/sudo/sss_sudo.doxy
cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(PYTHON_PREFIX) --record=$(abs_builddir)/src/config/.files; \
cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(PYTHON_PREFIX) --root=$(DESTDIR) --record=$(abs_builddir)/src/config/.files; \
rm $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2 \
$(DESTDIR)/$(nsslibdir)/libnss_sss.so
if [ -f $(abs_builddir)/src/config/.files ]; then \
cat $(abs_builddir)/src/config/.files | xargs -iq rm -f $(DESTDIR)/q; \
rm $(abs_builddir)/src/config/.files ; \
cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config clean --all
cp $(builddir)/contrib/sssd.spec $(RPMBUILD)/SPECS
cp $(distdir).tar.gz $(RPMBUILD)/SOURCES
rpmbuild --define "_topdir $(RPMBUILD)" -ba SPECS/sssd.spec
-ba SPECS/sssd.spec
sed -e "s/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.*\])/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.`date +%Y%m%d.%H%M`.git`git log -1 --pretty=format:%h`\])/" < $(srcdir)/version.m4.orig > $(srcdir)/version.m4
sed -e "s/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.*\])/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.`date +%Y%m%d.%H%M`.git`git log -1 --pretty=format:%h`\])/" < $(srcdir)/version.m4.orig > $(srcdir)/version.m4
-bs SPECS/sssd.spec
sed -e "s/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.*\])/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.`date +%Y%m%d.%H%M`.git`git log -1 --pretty=format:%h`\])/" < $(srcdir)/version.m4.orig > $(srcdir)/version.m4