-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.package
48 lines (40 loc) · 1.33 KB
/
Makefile.package
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
# 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.
#
# To clean out all SVG files that may take up space:
#
# make clean_svg
#
# # 23 September 2018 Henrik Frisk mail@henrikfrisk.com
subdirs := $(wildcard ./KMH*)
target_makefile := ~/Music/faust/faust_stuff.git/Makefile.adt
target := all
sources := $(wildcard */src/*.dsp)
.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)))