forked from bartvdbraak/blender
Introducing the 'quicky' make.
Sick of waiting for make to traverse all of those directories when you only modified one little file? Well, enough of that nonsense! Doing "make quicky=dir" (e.g. "make quicky=source/blender/src") goes to that directory, compiles the stuff in there (and the subdirectories), then instantly links blender afterwards. Also has support for more than one directory using quotes, e.g., 1 dir: make quicky=source/blender/src 2 dirs: make quicky="source/blender/src source/blender/blenkernel"
This commit is contained in:
parent
a72fcb115b
commit
3ae81a5285
@ -38,6 +38,14 @@ default: all
|
||||
# do not add install here. install target can only be used in intern/
|
||||
# top level Makefiles
|
||||
all debug clean::
|
||||
ifdef quicky
|
||||
@for i in $(quicky); do \
|
||||
echo "====> $(MAKE) $@ in $$i";\
|
||||
$(MAKE) -C $$i $@ quicky= || exit 1;\
|
||||
done
|
||||
$(MAKE) -C source link || exit 1
|
||||
@echo "${quicky}"
|
||||
else
|
||||
ifdef DIR
|
||||
@# Make sure object toplevels are there
|
||||
@[ -d $(NAN_OBJDIR) ] || mkdir $(NAN_OBJDIR)
|
||||
@ -52,6 +60,7 @@ all debug clean::
|
||||
echo "====> $(MAKE) $@ in $(SOURCEDIR)/$$i" ;\
|
||||
$(MAKE) -C $$i $@ || exit 1; \
|
||||
done
|
||||
endif
|
||||
|
||||
test::
|
||||
ifdef TESTDIRS
|
||||
|
Loading…
Reference in New Issue
Block a user