Skip to content

Instantly share code, notes, and snippets.

@keleshev keleshev/Makefile
Last active Feb 5, 2020

Embed
What would you like to do?
(executable
(public_name my_program))
(lang dune 1.11)
(name my_program)
.PHONY: build install
ifeq ($(PREFIX),)
INSTALL_FLAGS=
else
INSTALL_FLAGS=--prefix=$(PREFIX)
endif
build:
dune build
install: build
dune install $(INSTALL_FLAGS)
let () = print_endline "hi"
# Intentionally empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.