Skip to content

Instantly share code, notes, and snippets.

@lalunamel
Last active August 29, 2015 14:06
Show Gist options
  • Save lalunamel/c6f6da9a643fca4cdd0e to your computer and use it in GitHub Desktop.
Save lalunamel/c6f6da9a643fca4cdd0e to your computer and use it in GitHub Desktop.
Chapel Lab Makefile
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir_name := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
all: run
compile:
chpl -o bin/$(current_dir_name) src/$(current_dir_name).chpl
run: compile
bin/$(current_dir_name)
clean
rm bin/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment