mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 12:16:31 +01:00
5a3655b33a
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
25 lines
889 B
Makefile
25 lines
889 B
Makefile
noinst_HEADERS=version.h gettext.h gettext_curses.h bswap.h os_compat.h
|
|
|
|
version.h: stamp-vh
|
|
@:
|
|
|
|
stamp-vh: $(top_builddir)/configure.ac
|
|
@echo "/*" > ver.tmp
|
|
@echo " * version.h" >> ver.tmp
|
|
@echo " */" >> ver.tmp
|
|
@echo "" >> ver.tmp
|
|
@echo "#define SND_UTIL_MAJOR $(SND_UTIL_MAJOR)" >> ver.tmp
|
|
@echo "#define SND_UTIL_MINOR $(SND_UTIL_MINOR)" >> ver.tmp
|
|
@echo "#define SND_UTIL_SUBMINOR $(SND_UTIL_SUBMINOR)" >> ver.tmp
|
|
@echo "#define SND_UTIL_VERSION ((SND_UTIL_MAJOR<<16)|\\" >> ver.tmp
|
|
@echo " (SND_UTIL_MINOR<<8)|\\" >> ver.tmp
|
|
@echo " SND_UTIL_SUBMINOR)" >> ver.tmp
|
|
@echo "#define SND_UTIL_VERSION_STR \"$(SND_UTIL_VERSION)\"" >> ver.tmp
|
|
@echo >> ver.tmp
|
|
@cmp -s version.h ver.tmp \
|
|
|| (echo "Updating version.h"; \
|
|
cp ver.tmp version.h; \
|
|
echo timestamp > stamp-vh)
|
|
-@rm -f ver.tmp
|
|
|
|
AM_CPPFLAGS=-I$(top_srcdir)/include
|