Makefile.am 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. else
  18. ALL_PERL =
  19. CLEAN_PERL =
  20. endif
  21. if BIND_PYTHON
  22. PYTHON_SUBDIR=python
  23. else
  24. PYTHON_SUBDIR=
  25. endif
  26. if BIND_PHP
  27. PHP_SUBDIR=php
  28. else
  29. PHP_SUBDIR=
  30. endif
  31. if BIND_GUILE
  32. GUILE_SUBDIR=guile
  33. else
  34. GUILE_SUBDIR=
  35. endif
  36. if BIND_TCL
  37. TCL_SUBDIR=tcl
  38. else
  39. TCL_SUBDIR=
  40. endif
  41. all-local: $(ALL_PERL)
  42. clean-local: $(CLEAN_PERL)
  43. .PHONY: all-perl
  44. all-perl: perl/Makefile
  45. -$(MAKE) -C perl all
  46. .PHONY: clean-perl
  47. clean-perl: perl/Makefile
  48. -$(MAKE) -C perl clean
  49. perl/Makefile:
  50. -(cd perl && $(PERL) Makefile.PL)