diff --git a/make/system-tools-extra.mk b/make/system-tools-extra.mk index 136c8326..92008eaa 100644 --- a/make/system-tools-extra.mk +++ b/make/system-tools-extra.mk @@ -192,21 +192,24 @@ $(D)/python: $(ARCHIVE)/Python-$(PYTHON_VER).tgz | $(TARGET_DIR) # ----------------------------------------------------------------------------- -$(D)/astra-sm: $(D)/openssl | $(TARGET_DIR) - # workaround unrecognized command line options - make astra-sm-no-march-cflags TARGET_MARCH_CFLAGS="" - -$(D)/astra-sm-no-march-cflags: - $(REMOVE)/astra-sm - git clone https://gitlab.com/crazycat69/astra-sm.git $(BUILD_TMP)/astra-sm; \ - $(CHDIR)/astra-sm; \ +$(ARCHIVE)/astra-sm.git: + get-git-source.sh https://gitlab.com/crazycat69/astra-sm.git $@ + +PHONY += $(ARCHIVE)/astra-sm.git + +# workaround unrecognized command line options +$(D)/astra-sm: TARGET_MARCH_CFLAGS="" +$(D)/astra-sm: $(ARCHIVE)/astra-sm.git $(D)/openssl | $(TARGET_DIR) + $(REMOVE)/astra-sm.git + $(CPDIR)/astra-sm.git + $(CHDIR)/astra-sm.git; \ autoreconf -fi; \ $(CONFIGURE) \ --prefix= \ --without-lua-compiler \ ; \ $(MAKE) install DESTDIR=$(TARGET_DIR) - $(REMOVE)/astra-sm + $(REMOVE)/astra-sm.git $(TOUCH) # -----------------------------------------------------------------------------