Rebuild gen/*.cpp with faust. Save & restore original files (Closes: #613044).
Alessio Treglia
13 years ago
2 | 2 | LDFLAGS+=-Wl,--as-needed |
3 | 3 | PREFIX=/usr |
4 | 4 | |
5 | FILES_TO_RESTORE=gen/yc20-dsp-standalone.cpp gen/yc20-dsp-plugin.cpp | |
6 | ||
5 | 7 | %: |
6 | 8 | dh $@ -Smakefile |
9 | ||
10 | override_dh_auto_clean: | |
11 | for i in ${FILES_TO_RESTORE} ; do \ | |
12 | [ ! -f $${i}.upstream-orig ] || mv $${i}.upstream-orig $${i} ;\ | |
13 | done | |
14 | dh_auto_clean | |
15 | ||
16 | override_dh_auto_configure: | |
17 | for i in ${FILES_TO_RESTORE} ; do \ | |
18 | [ ! -f $${i} ] || mv $${i} $${i}.upstream-orig ;\ | |
19 | done | |
20 | $(MAKE) generate-source | |
7 | 21 | |
8 | 22 | override_dh_auto_build: |
9 | 23 | dh_auto_build -- PREFIX=${PREFIX} |