Closed neverkas closed 2 years ago
Problema
RUTA="/home/jelou/Documents/git/manu-cproject/project/static/bin/lib_mylib.a" .PHONY: testing testing: ifeq ("","$(wildcard /home/jelou/Documents/git/manu-cproject/project/static/bin/lib_mylib.a)") @echo "alt:1 existe" else @echo "alt:1 nope no existe" endif @echo ifeq ("","$(wildcard $(DIR_STATIC_LIB)/$(DIR_BIN)/lib_mylib.a)") @echo "alt2: existe" else @echo "alt:2 nope no existe" endif @echo @echo "ruta: $(DIR_STATIC_LIB)/$(DIR_BIN)/lib_mylib.a" @echo DIR_STATIC_LIB: $(DIR_STATIC_LIB) @echo DIR_BIN: $(DIR_BIN) @echo bin: lib_mylib.a
Solucion temporal Usamos bash dentro de la regla donde queremos
@@[ -f $(DIR_STATIC_LIB)/$(DIR_BIN)/lib_mylib.a ] || $(MAKE) --no-print-directory -C $(DIR_STATIC_LIB) compile_static
Problema
Solucion temporal Usamos bash dentro de la regla donde queremos