-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
30 lines (24 loc) · 794 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#@name Pretty Make
#@description An attempt to make Make pretty.
# Here we ensure that every command this Makefile run will run in a bash shell,
# instead of the default 'sh'. This is actually just a variable assignment.
SHELL := /usr/bin/env bash
.DEFAULT_GOAL := pretty-help
.PHONY: pretty-help
## Run Pretty Make pretty-help on tests/fixtures/Makefile
pretty-help:
@cargo run -- pretty-help tests/fixtures/Makefile
.PHONY: build
## Build pretty-make
build:
@cargo build
.PHONY: empty-run
## List available commands for bin/pretty-make
run-help:
@cargo run -- --help
bin/pretty-make:
@curl -Ls https://raw.githubusercontent.com/awea/pretty-make/master/scripts/install.sh | bash -s
.PHONY: help
## List available commands
help: bin/pretty-make
@bin/pretty-make pretty-help Makefile