-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (42 loc) · 1.52 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
# Makefile for faust code compilation of directories
# created by the ADT generation routines in kmh_decoders
#
# This file assumes that your faust code exists in
# a subdirectory that has its own Makefile:
#
# ./KMH108_AE_1h1p_normal_6/src/faustsources.dsp
#
# It may contan one or several .dsp files.
#
# The target for the recursively called Makefiles is 'all' by
# default but the build command may change this by running:
#
# make -K target=sc all
#
# This builds the 'all' target in this Makefile and
# the sc target in the sub-Makefiles.
#
# # 23 September 2018 Henrik Frisk [email protected]
# sed script to remove faulty lines:
# sed -i -E 's/(.+n_inputs,n_outputs,outs.+)/\/\/\1/; s/(.+par.i,n_outputs,.0,gate_bus.i,outs.+)/\/\/\1/; s/.+m.bus.n_outputs.+//'
subdirs := $(wildcard ./KMH*)
target_makefile := /home/henrikfr/Music/spatialization/klangkupolen/decoders/kmh_decoders/Makefile.adt
target := all
sources := $(wildcard */src/*.dsp)
test:
@echo $(UNAME)
print_subdirs :
@echo $(subdirs)
.PHONY : all $(subdirs) update_makefile
clean_svg :
$(foreach var, $(subdirs), $(shell rm "$(var)"/doc/*-svg/*.svg))
all : $(subdirs)
$(subdirs) :
@echo "Installing sc files for $@..."
$(MAKE) -C $@ $(target)
update_makefile : $(target_makefile)
$(foreach var, $(subdirs), $(shell cp "$<" "$(var)/Makefile"))
list_sources :
@echo $(sources)
edit_sources :
$(foreach var, $(sources), $(shell sed -i -E 's/(.+n_inputs,n_outputs,outs.+)/\/\/\1/; s/(.+par.i,n_outputs,.0,gate_bus.i,outs.+)/\/\/\1/; s/.+m.bus.n_outputs.+//' $(var)))