How do I write a makefile for blitzplus?

BlitzPlus Forums/BlitzPlus Programming/How do I write a makefile for blitzplus?

indietom(Posted 2015) [#1]
I started using emacs so I need a makefile.


Yasha(Posted 2015) [#2]
It's a bit pointless since BlitzPlus doesn't have a "build system" of any kind, it's entirely single-file oriented - but you could modify any "minimal makefile" example to get something like this?

#compiler
CC=blitzcc
#source files
SOURCE=main.bb
#executable filename
EXECUTABLE=main.exe

all: $(EXECUTABLE)

$(EXECUTABLE):
 $(CC) -o $(EXECUTABLE) $(SOURCE)

clean:
 rm $(EXECUTABLE)


So is there an emacs mode for BlitzPlus?