Commit a803679f authored by Suraj Modi's avatar Suraj Modi
Browse files

changes made in makefile for faster build

parent 0c9f7b5b
Pipeline #3184 failed with stage
in 0 seconds
......@@ -116,7 +116,7 @@ light:
emscripten:
cd l2ork_addons && $(env) ./tar_em_up.sh -ckln
make -C emscripten
$(MAKE) -C emscripten
# Convenience targets to build the double precision version.
......@@ -136,16 +136,16 @@ light-double:
cd l2ork_addons && $(env) CFLAGS=-DPD_FLOATSIZE=64 blacklist="$(double_blacklist)" ./tar_em_up.sh -tkl
%_abs:
make -C abstractions $(@:%_abs=%) $(@:%_abs=%_install) $(install_vars)
$(MAKE) -C abstractions $(@:%_abs=%) $(@:%_abs=%_install) $(install_vars)
%_ext:
make -C externals $(@:%_ext=%) $(@:%_ext=%_install) $(install_vars)
$(MAKE) -C externals $(@:%_ext=%) $(@:%_ext=%_install) $(install_vars)
checkout:
git submodule update --init
clean:
test "$(shell uname -s)" = "Darwin" && make -C packages/darwin_app clean || true
test "$(shell uname -s)" = "Darwin" && $(MAKE) -C packages/darwin_app clean || true
cd pd/src && aclocal && autoconf && make clean || true
cd externals/miXed && make clean || true
cd Gem/src/ && test -f Makefile && make distclean || true
......@@ -153,7 +153,7 @@ clean:
cd Gem/ && test -f Makefile && make distclean || true
cd Gem/ && rm -f gemglutwindow.pd_linux Gem.pd_linux || true
rm -rf packages/*/build/
make -C emscripten clean
$(MAKE) -C emscripten clean
realclean:
# This requires a working copy of the git repo.
......
......@@ -38,9 +38,9 @@ libpd: $(LIBPD_PATH)
cd $< && mkdir -p build && cd build && emcmake cmake .. -DPD_UTILS:BOOL=OFF -DCMAKE_BUILD_TYPE=Release && emmake make
externals: $(PURR_DIR)/externals
make -C $< EMSCRIPTEN="yes" WARN_FLAGS="$(WARN_FLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" CC="$(CC)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" EXTENSION="$(EXTENSION)" STRIP="$(STRIP)"
$(MAKE) -C $< EMSCRIPTEN="yes" WARN_FLAGS="$(WARN_FLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" CC="$(CC)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" EXTENSION="$(EXTENSION)" STRIP="$(STRIP)"
mkdir -p $(DESTDIR)/$(objectsdir)
make -C $< EMSCRIPTEN="yes" DESTDIR="$(DESTDIR)" EXTENSION="$(EXTENSION)" STRIP="$(STRIP)" objectsdir="$(objectsdir)" install
$(MAKE) -C $< EMSCRIPTEN="yes" DESTDIR="$(DESTDIR)" EXTENSION="$(EXTENSION)" STRIP="$(STRIP)" objectsdir="$(objectsdir)" install
extras = bob~ bonk~ choice fiddle~ loop~ lrshift~ pique sigmund~ stdout
extra: $(extras)
......@@ -54,7 +54,7 @@ $(extras): %: $(PD_PATH)/extra
abstractions: $(PURR_DIR)/abstractions
mkdir -p $(DESTDIR)/$(objectsdir)
make -C $< DESTDIR="$(DESTDIR)" objectsdir="$(objectsdir)" install
$(MAKE) -C $< DESTDIR="$(DESTDIR)" objectsdir="$(objectsdir)" install
doc: $(PD_PATH)/doc
mkdir -p $(DESTDIR)/doc/
......@@ -62,7 +62,7 @@ doc: $(PD_PATH)/doc
build: $(BUILD_PATH)
rm -rf $(DESTDIR)/lib/
make -C $<
$(MAKE) -C $<
project: $(INSTALL_PATH)
cp -rf $(PD_PATH)/nw/dialog_*.html $</components/dialogs/
......@@ -72,8 +72,8 @@ project: $(INSTALL_PATH)
clean:
find $(PURR_DIR)/externals -name "*.wasm" -type f -delete
find $(PD_PATH)/extra -name "*.wasm" -type f -delete
make -C $(LIBPD_PATH) clean
make -C $(BUILD_PATH) clean
$(MAKE) -C $(LIBPD_PATH) clean
$(MAKE) -C $(BUILD_PATH) clean
rm -rf $(DESTDIR)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment