1 # developer makefile, replaces automake Makefile
5 export CFLAGS_ := $(CFLAGS)
7 cpus:=$(shell grep -c "^proc" /proc/cpuinfo)
8 jobs:=-j$(shell echo $$(($(cpus) + $(cpus)/2 +2)))
9 MAKEJ := $(MAKE) $(jobs)
11 SUBDIRS = thirdparty libzmpeg3 mpeg2enc mplexlo \
12 db guicast cinelerra plugins doc po
16 +for dir in $(SUBDIRS); do $(MAKEJ) -C $$dir all; done
19 for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean; done
20 rm -rf thirdparty/opencv*
21 rm -rf bin cinelerra/tags
24 # need for jobserver install step
27 for dir in $(SUBDIRS); do $(MAKE) -C $$dir install; done
28 cp -a COPYING README models Cinelerra_factory ffmpeg msg info tips bin/.
29 cp -a lv2_blacklist.txt bin/.
30 mkdir -p bin/plugins/picon/cinfinity; for d in picon/*; do \
31 if [ $$d = picon/cinfinity ]; then continue; fi; \
32 cp -a $$d bin/plugins/picon/.; \
36 $(MAKE) -C guicast clean
37 $(MAKE) -C cinelerra clean
38 $(MAKE) -C plugins clean
40 +$(MAKEJ) -C cinelerra
45 $(MAKE) -C libzmpeg3 clean
46 +$(MAKEJ) -C libzmpeg3
53 $(MAKE) -C cinelerra install
54 $(MAKE) -C plugins install