Makefile 483 B

1234567891011121314151617181920212223
  1. BASH_DIR = bash-4.1
  2. manifests = $(addsuffix .manifest,bash ls cp rm)
  3. exec_target = $(manifests)
  4. extra_rules = -e 's:\$$(PAL):../pal_loader:g'
  5. level = ../../
  6. include ../../Makefile
  7. $(bash_src): $(BASH_DIR).tar.gz
  8. tar -xzf $<
  9. $(bash_src)/bash: $(BASH_DIR)
  10. cd $(BASH_DIR) && ./configure --without-gnu-malloc
  11. cd $(BASH_DIR) && $(MAKE) CC="gcc -g"
  12. bash-local: $(BASH_DIR)/bash
  13. cp $< bash-local
  14. distclean: clean-manifests
  15. rm -rf $(bash_src)
  16. rm -rf bash result $(test_targets)