tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

Makefile.am (869B)


      1 noinst_HEADERS=version.h gettext.h gettext_curses.h
      2 
      3 version.h: stamp-vh
      4 	@:
      5 
      6 stamp-vh: $(top_builddir)/configure.ac
      7 	@echo "/*" > ver.tmp
      8 	@echo " *  version.h" >> ver.tmp
      9 	@echo " */" >> ver.tmp
     10 	@echo "" >> ver.tmp
     11 	@echo "#define SND_UTIL_MAJOR		$(SND_UTIL_MAJOR)" >> ver.tmp
     12 	@echo "#define SND_UTIL_MINOR		$(SND_UTIL_MINOR)" >> ver.tmp
     13 	@echo "#define SND_UTIL_SUBMINOR	$(SND_UTIL_SUBMINOR)" >> ver.tmp
     14 	@echo "#define SND_UTIL_VERSION		((SND_UTIL_MAJOR<<16)|\\" >> ver.tmp
     15 	@echo "				 (SND_UTIL_MINOR<<8)|\\" >> ver.tmp
     16 	@echo "				  SND_UTIL_SUBMINOR)" >> ver.tmp
     17 	@echo "#define SND_UTIL_VERSION_STR	\"$(SND_UTIL_VERSION)\"" >> ver.tmp
     18 	@echo >> ver.tmp
     19 	@cmp -s version.h ver.tmp \
     20           || (echo "Updating version.h"; \
     21               cp ver.tmp version.h; \
     22               echo timestamp > stamp-vh)
     23 	-@rm -f ver.tmp
     24 
     25 AM_CPPFLAGS=-I$(top_srcdir)/include