Makefile 619 B

12345678910111213141516171819202122232425262728293031323334
  1. bash_src = bash-4.1
  2. manifests = bash.manifest bash-local.manifest
  3. all debug: $(manifests)
  4. test_targets = testsamplebash
  5. bash-local: $(bash_src)/bash
  6. cp $< bash-local
  7. $(bash_src): $(bash_src).tar.gz
  8. tar -xzf $<
  9. $(bash_src)/bash: $(bash_src)
  10. cd $(bash_src) && ./configure --without-gnu-malloc
  11. cd $(bash_src) && $(MAKE) CC="gcc -g"
  12. test: all $(test_targets)
  13. testsamplebash:
  14. bash bash_test.sh
  15. %.manifest: %.manifest.template
  16. $(MAKE) -C .. bash/$@ appdir=bash/
  17. clean: clean-manifests
  18. distclean: clean-manifests
  19. rm -rf $(bash_src)
  20. rm -rf bash result $(test_targets)
  21. clean-manifests:
  22. rm -rf $(manifests)