cmake: use new-style rules

This commit is contained in:
Tony Theodore 2018-09-19 21:37:25 +10:00
parent 29fc99a6cc
commit 3f8dc4d8e3
1 changed files with 6 additions and 5 deletions

View File

@ -19,9 +19,10 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD_$(BUILD)
mkdir '$(1).build'
cd '$(1).build' && '$(1)/configure' \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1).build' -j '$(JOBS)'
$(MAKE) -C '$(1).build' -j 1 install
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
--prefix='$(PREFIX)/$(TARGET)' \
--parallel='$(JOBS)' \
$(PKG_CONFIGURE_OPTS)
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
endef