1
0
mirror of https://github.com/gluster/gluster-block.git synced 2026-02-05 12:45:33 +01:00
Files
gluster-block/Makefile.am
Xiubo Li f54d320bee spec: fix rpms build errors
Problems:
--------
$ make rpms
[...]
warning: bogus date in %changelog: Sun Apr 3 2019
error: %changelog not in descending chronological order
make: *** [rpms] Error 1

/usr/bin/install -c -m 644 gluster-block.logrotate               \
	/data/gluster-block/build/rpmbuild/BUILDROOT/gluster-block-0.3-1.x86_64/etc/logrotate.d/gluster-block;
/usr/bin/install: cannot stat 'gluster-block.logrotate': No such file or directory

Solution:
--------
Correct the date in the changelog and update the date to when the
PR is merged.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2019-04-26 15:13:33 +05:30

59 lines
1.6 KiB
Makefile

ACLOCAL_AMFLAGS = -I m4
SUBDIRS = rpc utils cli daemon systemd docs extras tests
DISTCLEANFILES = Makefile.in gluster-block.spec autom4te.cache
noinst_HEADERS = version.h config.h
CLEANFILES = *~ gluster-block.spec
EXTRA_DIST = autogen.sh README.md COPYING-GPLV2 COPYING-LGPLV3 \
gluster-block.spec INSTALL NEWS
if USE_SYSTEMD
RPM_WITH_FLAGS = --with systemd
else
RPM_WITH_FLAGS = --with initd
endif
rpms: prep
rpmbuild --define '_topdir $(abs_top_builddir)/build/rpmbuild' \
--define '_sourcedir $(abs_top_builddir)' \
$(RPM_WITH_FLAGS) \
-ba gluster-block.spec
srpm: prep
rpmbuild --define '_topdir $(abs_top_builddir)/build/rpmbuild' \
--define '_sourcedir $(abs_top_builddir)' \
-bs gluster-block.spec
prep: dist
@mkdir -p build/rpmbuild/{BUILD,SPECS,RPMS,SRPMS,SOURCES}
install-data-local:
mkdir -p $(DESTDIR)/$(localstatedir)/log/gluster-block
uninstall-local:
cd $(DESTDIR)$(bindir) && rm -f gluster-block gluster-blockd
clean-local:
rm -rf build rpmbuild *.rpm
gitclean: clean distclean
find . -path gnulib -prune -name Makefile.in -exec rm -f {} \;
find . -path gnulib -prune -name Makefile -exec rm -f {} \;
rm -f aclocal.m4 compile config.* configure depcomp install-sh libtool \
ltmain.sh missing stamp-h1
rm -rf autom4te.cache ar-lib *.tar.gz m4
dist-hook: gen-ChangeLog gen-VERSION
.PHONY: gen-ChangeLog gen-VERSION
gen-ChangeLog:
(cd $(srcdir) && git diff && echo ===== git log ==== && git log) > $(distdir)/ChangeLog
gen-VERSION:
(cd $(srcdir) && git describe --always --tags | cut -f2 -d'v' | cut -f1 -d'-') > $(distdir)/VERSION