-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
38 lines (31 loc) · 1.06 KB
/
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
31
32
33
34
35
36
37
38
all: README.md .doctoc-stamp .link-check-stamp
README.md: .profile.ps1-include-stamp .nanosetup.ps1-include-stamp \
.install.ps1-include-stamp .install-user.ps1-include-stamp \
.ports-task.ps1-include-stamp .build-task.ps1-include-stamp \
.choco-install.ps1-include-stamp ..vimrc-include-stamp \
.make-busybox.cmd-include-stamp .make-git-bash.cmd-include-stamp \
..shrc-include-stamp ..tmux-pwsh.conf-include-stamp \
.install-msys2.ps1-include-stamp ..bashrc-include-stamp \
.install-msys2-buildenv.ps1-include-stamp .make-msys2.cmd-include-stamp
.%-include-stamp: %
@echo Inserting updated $<
@dos2unix $< 2>/dev/null
@awk -v include_file=$< -f insert-file.awk ./README.md > ./README.md.new
@cp README.md.new README.md
@rm README.md.new
@dos2unix ./README.md 2>/dev/null
@touch $@
.doctoc-stamp: README.md
@doctoc --notitle --github README.md
@touch .doctoc-stamp
ifneq (,$(findstring Windows,$(OS)))
NPM=npm.cmd
else
NPM=npm
endif
.link-check-stamp: README.md
@markdown-link-check -q README.md
@touch .link-check-stamp
.PHONY: clean
clean:
@rm .*-stamp