X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2FMakefile;h=49bd154c6cb0859eff6b11205c21ffda43d4d135;hb=refs%2Fheads%2Fmaster;hp=32ef35828010c44d25648a3c33357d204824effd;hpb=663d2357d00791229ff3263c4b121d34c7f67265;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/Makefile b/cinelerra-5.1/guicast/Makefile index 32ef3582..49bd154c 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.9) +endif + $(BCXFER): bccmdl.py bcxfer.C bcxfer.h $(python) < ./bccmdl.py