mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-01 05:22:25 +07:00
The `examples/` directory was never built. The documentation however indicated the existence of an `--enable-examples` option, which didn't really exist. This patch adds that option. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
ACLOCAL_AMFLAGS = -I m4
|
|
SUBDIRS = src tests
|
|
DIST_SUBDIRS = src examples tests
|
|
doc_DATA = API.md README.md LICENSE
|
|
EXTRA_DIST = API.md README.md LICENSE AUTHORS ChangeLog.md
|
|
|
|
if ENABLE_EXAMPLES
|
|
SUBDIRS += examples
|
|
endif
|
|
|
|
## Generate .deb package
|
|
package:
|
|
@dpkg-buildpackage -uc -us -B
|
|
|
|
## 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: distcheck 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
|