Makefile 381 B

1234567891011121314151617181920
  1. COMMANDS = all install clean
  2. DOCKER = docker
  3. DOCKER_FLAGS = -v $$(pwd):/repo:ro -e "block_size=$(BLOCK_SIZE)" --rm
  4. BLOCK_SIZE = 4096
  5. IMAGE_NAME = fuse-mfs
  6. .PHONY: $(COMMANDS) test
  7. $(COMMANDS):
  8. $(MAKE) -C src $@
  9. $(MAKE) -C mkfs $@
  10. $(MAKE) -C fsck $@
  11. install: all
  12. test:
  13. $(DOCKER) build -t $(IMAGE_NAME) test/docker
  14. $(DOCKER) run --privileged $(DOCKER_FLAGS) $(IMAGE_NAME)