Makefile.maint 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. # Maintainer's Makefile -*-Makefile-*-
  2. top_srcdir = ..
  3. srcdir = .
  4. SHELL = /bin/sh
  5. all: README fnchange.lst
  6. fnchange.lst: fnchange.in $(top_srcdir)/configure.ac
  7. rm -f $@; \
  8. PACKAGE=`grep "^PACKAGE=" $(top_srcdir)/configure.ac | sed -e 's/^PACKAGE=//'`; \
  9. VERSION=`grep "^VERSION=" $(top_srcdir)/configure.ac | sed -e 's/^VERSION=//'`; \
  10. sed \
  11. -e '/^#/d' \
  12. -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \
  13. $(srcdir)/fnchange.in > t-$@
  14. mv t-$@ $@
  15. README: README.in $(top_srcdir)/configure.ac
  16. rm -f $@; \
  17. PACKAGE=`grep "^PACKAGE=" $(top_srcdir)/configure.ac | sed -e 's/^PACKAGE=//'`; \
  18. VERSION=`grep "^VERSION=" $(top_srcdir)/configure.ac | sed -e 's/^VERSION=//'`; \
  19. packageversion=`echo "$${VERSION}" | sed 's/\.//g'`; \
  20. treeversion=`echo "$${VERSION}" | sed 's/\.//g'`; \
  21. sed \
  22. -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \
  23. -e "s/@VER@/$${VERSION}/g" \
  24. -e "s/@packageversion@/$$packageversion/g" \
  25. -e "s/@treeversion@/$$treeversion/g" \
  26. $(srcdir)/README.in > t-$@
  27. mv t-$@ $@