Makefile 1.0 KB

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