mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-02 05:42:36 +07:00
This patch fixes the build regressions in libuev v1.5.1, which are due to the new unit test framework. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
lib_LTLIBRARIES = libuev.la
|
|
libuev_la_SOURCES = uev.c io.c timer.c signal.c cron.c
|
|
libuev_la_CPPFLAGS = -D_GNU_SOURCE
|
|
libuev_la_CFLAGS = -W -Wall -Wextra
|
|
libuev_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:2:0
|
|
|
|
noinst_PROGRAMS = bench
|
|
bench_CPPFLAGS = -D_GNU_SOURCE
|
|
bench_LDADD = libuev.la
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgincludedir = $(includedir)/uev
|
|
pkgconfig_DATA = libuev.pc
|
|
pkginclude_HEADERS = uev.h private.h queue.h
|
|
doc_DATA = README.md LICENSE
|
|
EXTRA_DIST = README.md LICENSE AUTHORS ChangeLog.md
|
|
DIST_SUBDIRS = examples tests
|
|
SUBDIRS = tests
|
|
|
|
## Generate MD5 checksum file
|
|
MD5 = md5sum
|
|
md5-dist:
|
|
@for file in $(DIST_ARCHIVES); do \
|
|
$(MD5) $$file > $$file.md5; \
|
|
done
|
|
|
|
## Check if tagged in git
|
|
release-hook:
|
|
if [ ! `git tag | grep $(PACKAGE_VERSION)` ]; then \
|
|
echo; \
|
|
printf "\e[1m\e[41mCannot find release tag $(PACKAGE_VERSION)\e[0m\n"; \
|
|
printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn; \
|
|
if [ "$$yorn" != "y" -a "$$yorn" != "Y" ]; then \
|
|
printf "OK, aborting release.\n"; \
|
|
exit 1; \
|
|
fi; \
|
|
echo; \
|
|
else \
|
|
echo; \
|
|
printf "\e[1m\e[42mFound GIT release tag $(PACKAGE_VERSION)\e[0m\n"; \
|
|
printf "\e[1m\e[44m>>Remember to push tags!\e[0m\n"; \
|
|
echo; \
|
|
fi
|
|
|
|
## Target to run when building a release
|
|
release: dist release-hook md5-dist
|
|
@for file in $(DIST_ARCHIVES); do \
|
|
printf "$$file \tDistribution tarball\n"; \
|
|
printf "$$file.md5\t"; cat $$file.md5 | cut -f1 -d' '; \
|
|
mv $$file* ../; \
|
|
done
|