Add version number to Makefile, Cleanup code

This commit is contained in:
Thraix
2018-06-10 12:15:41 +02:00
parent 464c483445
commit 5283801871
5 changed files with 30 additions and 26 deletions
+3 -3
View File
@@ -4,8 +4,8 @@
#include <dirent.h>
#include <cstring>
#include <fstream>
#include "Logging.h"
#include "IncludeDeps.h"
#include "Common.h"
void Makefile::GetAllFiles(const std::string& folder, std::vector<std::string>& files)
{
@@ -40,8 +40,8 @@ void Makefile::Save(const ConfigFile& conf)
PreSave(conf,hFiles,cppFiles);
std::ofstream outputFile("Makefile");
outputFile << "# This Makefile was generated using MakeGen made by Tim Håkansson and is" << std::endl;
outputFile << "# licensed under MIT. Full source of the project can be found at" << std::endl;
outputFile << "# This Makefile was generated using MakeGen "<< VERSION<< " made by Tim Håkansson" << std::endl;
outputFile << "# and is licensed under MIT. Full source of the project can be found at" << std::endl;
outputFile << "# https://github.com/Thraix/MakeGen" << std::endl;
outputFile << "CC=@g++" << std::endl;
if(!conf.executable)