Answers for "makefile variable for windows and linux"

0

makefile variable for windows and linux

ifdef OS
   RM = del /Q
   FixPath = $(subst /,\,$1)
else
   ifeq ($(shell uname), Linux)
      RM = rm -f
      FixPath = $1
   endif
endif

clean:
    $(RM) $(call FixPath,objs/*)
Posted by: Guest on January-27-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language