From 0af9887ea75d53c31bf88c0f8437dbe75e349b71 Mon Sep 17 00:00:00 2001 From: Thraix Date: Sun, 10 Jun 2018 00:07:07 +0200 Subject: [PATCH] Add license to Makefile --- Makefile | 6 +++++- src/Makefile.cpp | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3f618d9..384dfbb 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# This Makefile was generated using MakeGen made by Tim HÃ¥kansson and is +# licensed under MIT. Full source of the project can be found at +# https://github.com/Thraix/MakeGen CC=@g++ CO=@g++ -o BIN=bin/ @@ -19,7 +22,8 @@ $(OUTPUT): $(OBJECTS) $(info Generating output file) $(CO) $(OUTPUT) $(OBJECTS) $(LIBS) install: all - cp $(OUTPUT) /usr/bin/makegen + $(info Installing MakeGen to /usr/bin/) + @cp $(OUTPUT) /usr/bin/makegen $(OBJPATH)/ConfigFile.o : src/ConfigFile.cpp src/ConfigFile.h src/Logging.h $(info ---- $<) $(CC) $(CFLAGS) -o $@ $< diff --git a/src/Makefile.cpp b/src/Makefile.cpp index 2180e87..a948d5e 100644 --- a/src/Makefile.cpp +++ b/src/Makefile.cpp @@ -40,6 +40,9 @@ 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 << "# https://github.com/Thraix/MakeGen" << std::endl; outputFile << "CC=@g++" << std::endl; if(!conf.executable) outputFile << "CO=@ar rs" << std::endl; @@ -87,7 +90,8 @@ void Makefile::Save(const ConfigFile& conf) outputFile << "\t$(info Generating output file)" << std::endl; outputFile << "\t$(CO) $(OUTPUT) $(OBJECTS) $(LIBS)" << std::endl; outputFile << "install: all" << std::endl; - outputFile << "\tcp $(OUTPUT) /usr/bin/" << conf.outputname << std::endl; + outputFile << "\t$(info Installing MakeGen to /usr/bin/)" << std::endl; + outputFile << "\t@cp $(OUTPUT) /usr/bin/" << conf.outputname << std::endl; std::map dependencies; for(auto it = cppFiles.begin(); it!=cppFiles.end();++it) {