-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
52 lines (39 loc) · 1.42 KB
/
makefile
File metadata and controls
52 lines (39 loc) · 1.42 KB
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
include libxputty/Build/Makefile.base
NOGOAL := uninstall install all features mod modapp standalone lv2 jack clap vst2
SWITCHGOAL := all modapp standalone lv2 jack clap vst2
PASS := features
SUBDIR := SmoothIR
.PHONY: $(SUBDIR) libxputty recurse
$(MAKECMDGOALS) recurse: $(SUBDIR)
check-and-reinit-submodules :
ifeq (,$(filter $(NOGOAL),$(MAKECMDGOALS)))
ifeq (,$(findstring clean,$(MAKECMDGOALS)))
@if git submodule status 2>/dev/null | egrep -q '^[-]|^[+]' ; then \
echo "$(red)INFO: Need to reinitialize git submodules$(reset)"; \
git submodule update --init; \
echo "$(blue)Done$(reset)"; \
else echo "$(blue) Submodule up to date$(reset)"; \
fi
endif
endif
libxputty: check-and-reinit-submodules
ifeq (,$(filter $(NOGOAL),$(MAKECMDGOALS)))
ifeq (,$(wildcard ./libxputty/xputty/resources/smoothir.png))
@cp ./SmoothIR/Resources/*.png ./libxputty/xputty/resources/
endif
@exec $(MAKE) --no-print-directory -j 1 -C $@ $(MAKECMDGOALS)
endif
ifneq (,$(filter $(SWITCHGOAL),$(MAKECMDGOALS)))
ifeq (,$(wildcard ./libxputty/xputty/resources/smoothir.png))
@cp ./SmoothIR/Resources/*.png ./libxputty/xputty/resources/
endif
@exec $(MAKE) --no-print-directory -j 1 -C $@ all
endif
$(SUBDIR): libxputty
ifeq (,$(filter $(PASS),$(MAKECMDGOALS)))
@exec $(MAKE) --no-print-directory -j 1 -C $@ $(MAKECMDGOALS)
endif
clean:
@rm -f ./libxputty/xputty/resources/smoothir.png
@rm -f ./libxputty/xputty/resources/filters.png
features: