2
0

reconfigure.mk 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/usr/bin/make -f
  2. # The auto tools MUST be run in the following order:
  3. #
  4. # 1. aclocal
  5. # 2. libtoolize (if you use libtool)
  6. # 3. autoconf
  7. # 4. autoheader (if you use autoheader)
  8. # 5. automake (if you use automake)
  9. #
  10. # The following makefile runs these in the correct order according to their
  11. # dependancies. It also makes up for Mac OSX's fucked-upped-ness.
  12. ACLOCAL = aclocal
  13. ifneq ($(shell uname -s), Darwin)
  14. LIBTOOLIZE = libtoolize
  15. else
  16. # Fuck Apple! Why the hell did they rename libtoolize????
  17. LIBTOOLIZE = glibtoolize
  18. # Fink sucks as well, but this seems necessary.
  19. ACLOCAL_INC = -I /sw/share/aclocal
  20. endif
  21. genfiles : config.status
  22. (cd src && make genfiles)
  23. (cd tests && make genfiles)
  24. config.status: configure src/config.h.in Makefile.in src/Makefile.in tests/Makefile.in
  25. ./configure --enable-gcc-werror
  26. configure: ltmain.sh
  27. autoconf
  28. Makefile.in: Makefile.am
  29. automake --copy --add-missing
  30. src/Makefile.in: src/Makefile.am
  31. automake --copy --add-missing
  32. tests/Makefile.in: tests/Makefile.am
  33. automake --copy --add-missing
  34. src/config.h.in: configure
  35. autoheader
  36. libtool ltmain.sh: aclocal.m4
  37. $(LIBTOOLIZE) --copy --force
  38. # Need to re-run aclocal whenever acinclude.m4 is modified.
  39. aclocal.m4: acinclude.m4
  40. $(ACLOCAL) $(ACLOCAL_INC)
  41. clean:
  42. rm -f libtool ltmain.sh aclocal.m4 Makefile.in src/config.h.in config.cache config.status
  43. find . -name .deps -type d -exec rm -rf {} \;
  44. # Do not edit or modify anything in this comment block.
  45. # The arch-tag line is a file identity tag for the GNU Arch
  46. # revision control system.
  47. #
  48. # arch-tag: 2b02bfd0-d5ed-489b-a554-2bf36903cca9