# Need some explanation about GenerateProjectFiles and Makefile

**URL:** <https://forums.unrealengine.com/t/need-some-explanation-about-generateprojectfiles-and-makefile/479822>\
**Category:** Platform & Builds\
**Tags:** generateprojectfiles, c-build, linux-build, unreal-engine, question\
**Created:** [March 9, 2021, 2:20am UTC](https://forums.unrealengine.com/t/need-some-explanation-about-generateprojectfiles-and-makefile/479822 "2021-03-09T02:20:40Z")\
**Posts on this page:** 1\
**Page:** 0

<div class="post-metadata">

**Author:** ![R3D9477](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@R3D9477](https://forums.unrealengine.com/u/R3D9477)\
**Post date:** [March 9, 2021, 2:20am UTC](https://forums.unrealengine.com/t/need-some-explanation-about-generateprojectfiles-and-makefile/479822/2 "2021-03-09T02:20:40Z")

</div>

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!
