Makefile 996 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. all: clean aclocal autoheader autoconf clean_again
  2. aclocal:
  3. @rm -rf aclocal.m4
  4. aclocal -I includes/
  5. autoheader:
  6. @rm -rf ../config.h.in
  7. @echo "Autoheader..."
  8. @autoheader
  9. @echo "" >> config.h.in
  10. @echo "/* Defines for pack features */" >> config.h.in
  11. @(for define in `sed -n -e 's/^[\+|\-] \([^ ]*\) .*/\1/ p' ../pack/pack.cfg`; do \
  12. echo "#undef S_$$define" >> config.h.in; \
  13. done)
  14. @mv -f config.h.in ../config.h.in
  15. @ls -al ../config.h.in
  16. autoconf:
  17. @rm -rf ../configure
  18. @echo "Autoconf...."
  19. @autoconf
  20. @echo "Fixing configure for cache_file"
  21. @(if ! sed configure -e "s/^cache_file=\/dev\/null/cache_file=\.\/config.cache/" \
  22. -e "s/&& echo \"updating cache .cache_file\"//" > ../configure; then \
  23. cp configure ../configure; \
  24. rm configure; \
  25. fi)
  26. @chmod 700 ../configure
  27. @ls -al ../configure
  28. clean:
  29. @echo "Cleaning..."
  30. @rm -rf autom4te.cache/ configure config.h.in aclocal.m4
  31. clean_again:
  32. @echo "Cleaning..."
  33. @rm -rf autom4te.cache/ configure config.h.in aclocal.m4