@@ -205,36 +205,9 @@ dist/js/subtitles-octopus.js: dist/license/all src/subtitles-octopus.js
205205 mkdir -p dist/js
206206 awk ' 1 {print "// "$$0}' dist/license/all | cat - src/subtitles-octopus.js > $@
207207
208- LIB_LICENSES := brotli expat freetype fribidi fontconfig harfbuzz libass
209- LIB_LICENSES_FINDOPT_brotli := -path ./research -prune -false -o ! -path ./js/decode.min.js
210- LIB_LICENSES_FINDOPT_expat := -path ./expat/fuzz -prune -false -o
211- LIB_LICENSES_FINDOPT_freetype := -path ./src/tools -prune -false -o
212- LIB_LICENSES_FINDOPT_fribidi := -path ./bin -prune -false -o
213- LIB_LICENSES_FINDOPT_harfbuzz := -path ./test -prune -false -o
214-
215- $(addprefix dist/license/, $(LIB_LICENSES ) ) : dist/license/% : .git/modules/lib/% /HEAD build/license_extract.sh build/license_defaults
216- @mkdir -p dist/license
217- (cd " lib/$* " && FINDOPTS=" $( LIB_LICENSES_FINDOPT_$* ) " \
218- ../../build/license_extract.sh ../../build/license_defaults " $* " .) > $@
219-
220- dist/license/subtitlesoctopus : .git/HEAD build/license_extract.sh
221- @mkdir -p dist/license
222- build/license_extract.sh build/license_defaults subtitlesoctopus src > dist/license/subtitlesoctopus
223-
224- dist/license/all : dist/license/subtitlesoctopus $(addprefix dist/license/, $(LIB_LICENSES ) ) build/license_fullnotice build/license_lint.awk
225- @echo " # The following lists all copyright notices and licenses for the" > dist/license/all
226- @echo " # work contained in JavascriptSubtitlesOctopus per project." >> dist/license/all
227- @echo " " >> dist/license/all
228-
229- @echo "Concatenate extracted license info..."
230- @$(foreach LIB_PROJ, subtitlesoctopus $(LIB_LICENSES), \
231- echo "# Project: $(LIB_PROJ)" >> dist/license/all && \
232- cat dist/license/$(LIB_PROJ) >> dist/license/all && \
233- ) :
234-
235- mv dist/license/all dist/license/all.tmp
236- build/license_lint.awk dist/license/all.tmp build/license_fullnotice
237- cat dist/license/all.tmp build/license_fullnotice > dist/license/all
208+ dist/license/all :
209+ @# FIXME: allow -j in toplevel Makefile and reintegrate licence extraction into this file
210+ make -j " $$ (nproc)" -f Makefile_licence all
238211
239212dist/js/COPYRIGHT : dist/license/all
240213 cp " $<" " $@ "
0 commit comments