Makefile.am 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # language/Makefile.am
  2. # copyright (C) 2003 by Frank Mori Hess
  3. # email : fmhess@users.sourceforge.net
  4. #
  5. # This Makefile.am is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. SUBDIRS = $(PYTHON_SUBDIR) $(PHP_SUBDIR) $(GUILE_SUBDIR) $(TCL_SUBDIR)
  10. EXTRA_DIST = $(PERL_DIST)
  11. PERL_DIST = perl/Changes perl/LinuxGpib.pm perl/LinuxGpib.xs \
  12. perl/MANIFEST perl/Makefile.PL perl/README perl/test.pl \
  13. perl/typemap perl/examples/
  14. if BIND_PERL
  15. ALL_PERL = all-perl
  16. CLEAN_PERL = clean-perl
  17. DISTCLEAN_PERL = distclean-perl
  18. else
  19. ALL_PERL =
  20. CLEAN_PERL =
  21. DISTCLEAN_PERL =
  22. endif
  23. if BIND_PYTHON
  24. PYTHON_SUBDIR=python
  25. else
  26. PYTHON_SUBDIR=
  27. endif
  28. if BIND_PHP
  29. PHP_SUBDIR=php
  30. else
  31. PHP_SUBDIR=
  32. endif
  33. if BIND_GUILE
  34. GUILE_SUBDIR=guile
  35. else
  36. GUILE_SUBDIR=
  37. endif
  38. if BIND_TCL
  39. TCL_SUBDIR=tcl
  40. else
  41. TCL_SUBDIR=
  42. endif
  43. all-local: $(ALL_PERL)
  44. clean-local: $(CLEAN_PERL)
  45. distclean-local: $(DISTCLEAN_PERL)
  46. .PHONY: all-perl
  47. all-perl: perl/Makefile
  48. -$(MAKE) -C perl all
  49. .PHONY: clean-perl
  50. clean-perl: perl/Makefile
  51. -$(MAKE) -C perl clean
  52. .PHONY: distclean-perl
  53. distclean-perl:
  54. $(RM) perl/Makefile
  55. perl/Makefile:
  56. -(cd perl && $(PERL) Makefile.PL)