Last active
August 29, 2015 14:06
-
-
Save lalunamel/c6f6da9a643fca4cdd0e to your computer and use it in GitHub Desktop.
Chapel Lab Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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