Makefile 630 B

1234567891011121314151617181920212223242526272829303132
  1. BASH_DIR = bash-4.1
  2. manifests = $(addsuffix .manifest,bash ls cp rm cat date)
  3. exec_target = $(manifests)
  4. level = ../../
  5. include ../../Makefile
  6. $(bash_src): $(BASH_DIR).tar.gz
  7. tar -xmzf $<
  8. $(bash_src)/bash: $(BASH_DIR)
  9. cd $(BASH_DIR) && ./configure --without-gnu-malloc
  10. cd $(BASH_DIR) && $(MAKE) CC="gcc -g"
  11. bash-local: $(BASH_DIR)/bash
  12. cp $< bash-local
  13. regression:
  14. @echo "\n\nBuilding Bash Manifests"
  15. @$(MAKE) >> /dev/null 2>&1
  16. @echo "\n\nRun bash_test.sh:"
  17. -./bash.manifest bash_test.sh 2
  18. -grep -q "hello 2" OUTPUT
  19. @rm OUTPUT
  20. distclean: clean-manifests
  21. rm -rf $(bash_src)
  22. rm -rf bash result $(test_targets)