X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2FMakefile;h=423ba100d91665179cab9bbe76e6a1e70e8fb933;hb=90e3dcd76cd8661a02734830617d921741cfc39a;hp=32ef35828010c44d25648a3c33357d204824effd;hpb=b7fd8ccc37991c54a154a7c858da0c70188f7284;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/Makefile b/cinelerra-5.1/guicast/Makefile index 32ef3582..423ba100 100644 --- a/cinelerra-5.1/guicast/Makefile +++ b/cinelerra-5.1/guicast/Makefile @@ -121,11 +121,18 @@ $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags) $(shell echo $(OBJS) > $(OBJDIR)/objs) all: $(OUTPUT) $(UTILS) -ifeq ($(uname -s), FreeBSD) -python = $(shell find /usrlocal/bin -name python3\* | head -n 1) -else -python = `which python` +PLATFORM = $(uname -s) +ifneq ($(PLATFORM), FreeBSD) +python = $(shell find /usr/local/bin -name python3\* | head -n 1) endif +ifneq ($(PLATFORM), Linux) +python = $(shell which python) +endif + +ifeq ($(python),) +python += $(shell which python3.8) +endif + $(BCXFER): bccmdl.py bcxfer.C bcxfer.h $(python) < ./bccmdl.py