Skip to content

Instantly share code, notes, and snippets.

@keleshev
Last active February 5, 2020 20:12
Show Gist options
  • Save keleshev/17765cb0b81557e03d27fc4a4b91fcec to your computer and use it in GitHub Desktop.
Save keleshev/17765cb0b81557e03d27fc4a4b91fcec to your computer and use it in GitHub Desktop.
(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