-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
53 lines (41 loc) · 1.14 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY: all _phony
all:
# make git-dotfiles first and restart make
ifeq ($(shell command -v git-dotfiles),)
include bin/.aliases/.done
bin/.aliases/.done:
$(MAKE) -C bin .aliases/.done
endif
include ~/_help.mk
define SUBDIR_TEMPLATE
$(1): _phony
$$(MAKE) -C $$@
$(1)\%%: _phony
$$(MAKE) -C $(1) $$*
help-src: help-src-$(1)
help-src-$(1):
@echo "##"
@echo "$(1):"
@echo "##"
@echo "$(1)%target:"
endef
SUBDIRS := $(shell git-dotfiles ls-files | sed -n -e 's|/Makefile$$||p')
$(foreach subdir,$(SUBDIRS),$(eval $(call SUBDIR_TEMPLATE,$(subdir))))
SUBDIRS_EXCLUDE := docs/resume-cv .xmonad-testing
## Invoke make for all subdirs with Makefiles
all: $(filter-out $(SUBDIRS_EXCLUDE),$(SUBDIRS))
.local/share/mise: bin/.ext .rustup
.local/share/bash-completion: .local/share/mise
## Invoke "make gc" in sub-Makefiles
gc: bin/.ext%gc
gc: src-elixir%gc
gc: .local/share/mise%gc
## Invoke "make update" in sub-Makefiles
update: .local/share/mise%update
update: bin/.ext%update
.PHONY: $(filter bootstrap.sh,$(MAKECMDGOALS))
all: bootstrap.sh
.SKIP_GITIGNORE: bootstrap.sh
##
bootstrap.sh: bin/liskin-include-preproc.py bin/.o
liskin-include-preproc.py $@