Commit 5eeca17d authored by Slava Monich's avatar Slava Monich

[build] Enabled parallel compilation

Recursive make commands should always use the variable MAKE, not the
explicit 'make', to avoid "warning: jobserver unavailable: using -j1"
parent b3d19543
......@@ -46,7 +46,7 @@ This package contains command line NFC tools.
%setup -q
%build
make LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
make %{_smp_mflags} LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
%install
%define target_wants_dir %{_unitdir}/network.target.wants
......
......@@ -146,21 +146,21 @@ debug: $(DEBUG_DEPS) $(DEBUG_EXE)
release: $(RELEASE_DEPS) $(RELEASE_EXE)
clean:
make -C $(NFC_CORE_DIR) clean
make -C $(NFC_PLUGINS_DIR) clean
$(MAKE) -C $(NFC_CORE_DIR) clean
$(MAKE) -C $(NFC_PLUGINS_DIR) clean
rm -fr $(BUILD_DIR) $(SRC_DIR)/*~
nfc_core_debug_lib:
make -C $(NFC_CORE_DIR) debug
$(MAKE) -C $(NFC_CORE_DIR) debug
nfc_core_release_lib:
make -C $(NFC_CORE_DIR) release
$(MAKE) -C $(NFC_CORE_DIR) release
nfc_plugins_debug_lib:
make -C $(NFC_PLUGINS_DIR) debug
$(MAKE) -C $(NFC_PLUGINS_DIR) debug
nfc_plugins_release_lib:
make -C $(NFC_PLUGINS_DIR) release
$(MAKE) -C $(NFC_PLUGINS_DIR) release
$(DEBUG_BUILD_DIR):
mkdir -p $@
......
......@@ -115,10 +115,10 @@ clean:
rm -fr $(BUILD_DIR) $(SRC_DIR)/*~
nfc_core_debug_lib:
make -C $(NFC_CORE_DIR) debug
$(MAKE) -C $(NFC_CORE_DIR) debug
nfc_core_release_lib:
make -C $(NFC_CORE_DIR) release
$(MAKE) -C $(NFC_CORE_DIR) release
$(GEN_DIR)/%.c: $(SPEC_DIR)/%.xml
gdbus-codegen --generate-c-code $(@:%.c=%) $<
......
......@@ -138,10 +138,10 @@ clean:
rm -fr $(BUILD_DIR) $(SRC_DIR)/*~
nfc_core_debug_lib:
make -C $(NFC_CORE_DIR) debug
$(MAKE) -C $(NFC_CORE_DIR) debug
nfc_core_release_lib:
make -C $(NFC_CORE_DIR) release
$(MAKE) -C $(NFC_CORE_DIR) release
$(GEN_DIR)/%.c: $(SPEC_DIR)/%.xml
gdbus-codegen --generate-c-code $(@:%.c=%) $<
......
......@@ -139,10 +139,10 @@ clean:
rm -fr $(BUILD_DIR) $(SRC_DIR)/*~
nfc_core_debug_lib:
make -C $(NFC_CORE_DIR) debug
$(MAKE) -C $(NFC_CORE_DIR) debug
nfc_core_release_lib:
make -C $(NFC_CORE_DIR) release
$(MAKE) -C $(NFC_CORE_DIR) release
$(GEN_DIR)/%.c: $(SPEC_DIR)/%.xml
gdbus-codegen --generate-c-code $(@:%.c=%) $<
......
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