Need some explanation about GenerateProjectFiles and Makefile

R3D9477
Tue, 09 Mar 2021 02:20:40 +0000
Platform & Builds

Hello.
I have two different projects, the first was created from C++ template, and the second is Empty Blueprint project.

The first project has a Makefile with the second building targets:

UNREALROOTPATH = /home/r3d9477/Software/LinuxInstalled/UnrealEngine-4.25.4-release
GAMEPROJECTFILE =/home/r3d9477/Documents/UnrealProjects/MyCppProj/MyCppProj.uproject

TARGETS = \
	MyCppProj-Linux-Debug  \
	MyCppProj-Linux-DebugGame  \
	MyCppProj-Linux-Shipping  \
	MyCppProj-Linux-Test  \
	MyCppProj \
	MyCppProjEditor-Linux-Debug  \
	MyCppProjEditor-Linux-DebugGame  \
	MyCppProjEditor-Linux-Shipping  \
	MyCppProjEditor-Linux-Test  \
	MyCppProjEditor \
        ....
MyCppProj-Linux-Debug:
	 $(PROJECTBUILD) MyCppProj Linux Debug  -project="$(GAMEPROJECTFILE)" $(ARGS)

MyCppProj-Linux-DebugGame:
	 $(PROJECTBUILD) MyCppProj Linux DebugGame  -project="$(GAMEPROJECTFILE)" $(ARGS)

MyCppProj-Linux-Shipping:
	 $(PROJECTBUILD) MyCppProj Linux Shipping  -project="$(GAMEPROJECTFILE)" $(ARGS)

MyCppProj-Linux-Test:
	 $(PROJECTBUILD) MyCppProj Linux Test  -project="$(GAMEPROJECTFILE)" $(ARGS)

MyCppProj:
	 $(PROJECTBUILD) MyCppProj Linux Development  -project="$(GAMEPROJECTFILE)" $(ARGS)

MyCppProjEditor-Linux-Debug:
	 $(PROJECTBUILD) MyCppProjEditor Linux Debug  -project="$(GAMEPROJECTFILE)" $(ARGS)

MyCppProjEditor-Linux-DebugGame:
	 $(PROJECTBUILD) MyCppProjEditor Linux DebugGame  -project="$(GAMEPROJECTFILE)" $(ARGS)

MyCppProjEditor-Linux-Shipping:
	 $(PROJECTBUILD) MyCppProjEditor Linux Shipping  -project="$(GAMEPROJECTFILE)" $(ARGS)

MyCppProjEditor-Linux-Test:
	 $(PROJECTBUILD) MyCppProjEditor Linux Test  -project="$(GAMEPROJECTFILE)" $(ARGS)

MyCppProjEditor:
	 $(PROJECTBUILD) MyCppProjEditor Linux Development  -project="$(GAMEPROJECTFILE)" $(ARGS)
...
...

where MyCppProjEditor is the name of first project (MyCppProjEditor.uproject)

Ok, I’ve tried to generate the same Makefile for second project (which was created from Blueprint template):

cd "UnrealEngine-4.25.4-release"
./GenerateProjectFiles.sh -projectfiles -project="/home/r3d9477/UnrealProjects/TestBpCppProj/TestBpCppProj.uproject" -game -engine -progress

Makefile was succesfully generated.
But it doesn’t contain any targets to build project “TestBpCppProj”

I found only the next lines:

UE4Editor:
	 $(BUILD) UE4Editor Linux Development  -project="$(GAMEPROJECTFILE)" $(ARGS)

UE4Game-Linux-Debug:
	 $(BUILD) UE4Game Linux Debug  -project="$(GAMEPROJECTFILE)" $(ARGS)

UE4Game-Linux-DebugGame:
	 $(BUILD) UE4Game Linux DebugGame  -project="$(GAMEPROJECTFILE)" $(ARGS)

but I think it is not what I’m looking for.

Could somebody explain, how to generate Makefile correctly for existing project?

Thanks!

1 post - 1 participant