瀏覽代碼

gitignore will not add executables, dll, or pdf.
makefile's clean target uses a better file delete.
added old notes into todo.

wes 4 年之前
父節點
當前提交
094c5732ae
共有 3 個文件被更改,包括 13 次插入12 次删除
  1. 6 10
      .gitignore
  2. 3 2
      Makefile
  3. 4 0
      ToDo/ToDo.txt

+ 6 - 10
.gitignore

@@ -1,12 +1,8 @@
 
 
 .vscode/c_cpp_properties.json
 .vscode/c_cpp_properties.json
-cleanPDFtest/cleanPDFtest.exe
-cleanPDFtest/libhpdf.dll
-cleanPDFtest/libpng16.dll
-libharuEXMP/libhpdf.dll
-libharuEXMP/libpng16.dll
-libharuEXMP/libharuEXMP.exe
-libharuEXMP/libharuEXMP.exe.pdf
-url2file/libcurl.dll
-url2file/libpng16.dll
-url2file/url2file.exe
+#  never add executables - in any directory
+**.exe
+#  never add dynamically linked libraries- in any directory
+**.dll
+#  never add postscript document format- in any directory
+**.pdf

+ 3 - 2
Makefile

@@ -19,7 +19,8 @@ OUTPUT_FOLDER = $(basename $@)
 	g++ $< -o $(basename $@)\$@
 	g++ $< -o $(basename $@)\$@
 
 
 clean :
 clean :
-	del $(basename $(f))\$(f)
+#	del $(basename $(f))\$(f)
+	'$(ProgramFiles)/Git/usr/bin/rm.exe' -rf $(basename $(f))\$(f)
 #  cp was not working in powershell, it has to be copy. line endings matter for some programs
 #  cp was not working in powershell, it has to be copy. line endings matter for some programs
 #  to remove ambiguity from the copy command, quotes are necessary to put around the destination path to specify it was a directory and not a file
 #  to remove ambiguity from the copy command, quotes are necessary to put around the destination path to specify it was a directory and not a file
 url2file.exe : url2file.c url2file/libpng16.dll url2file/libcurl.dll
 url2file.exe : url2file.c url2file/libpng16.dll url2file/libcurl.dll
@@ -32,4 +33,4 @@ libharuEXMP.exe : libharuEXMP.cpp libharuEXMP/libpng16.dll libharuEXMP/libhpdf.d
 cleanPDFtest.exe : cleanPDFtest.cpp cleanPDFtest/libpng16.dll cleanPDFtest/libhpdf.dll
 cleanPDFtest.exe : cleanPDFtest.cpp cleanPDFtest/libpng16.dll cleanPDFtest/libhpdf.dll
 	g++ $< -L $(ow)/lib/  -I $(ow)/include/ -lhpdf -o $(basename $@)/$@
 	g++ $< -L $(ow)/lib/  -I $(ow)/include/ -lhpdf -o $(basename $@)/$@
 pdfHummusTest1.exe : pdfHummusTest1.cpp
 pdfHummusTest1.exe : pdfHummusTest1.cpp
-	g++ -I C:/Users/bad-p/Downloads/PDFHummus-build/PDFWriter/include $< -L C:/Users/bad-p/Downloads/PDFHummus-build/PDFWriter/objs -lall -o $(basename $@)/$@
+	g++ -I C:/Users/bad-p/Downloads/PDFHummus-build/PDFWriter/include $< -L C:/Users/bad-p/Downloads/PDFHummus-build/PDFWriter/objs -lall -o $(basename $@)/$@

+ 4 - 0
ToDo/ToDo.txt

@@ -1,3 +1,7 @@
+14April20
+1. Succesfully created a PDF and added text
+2. issues adding a jpg file to the PDF, figure it out next time
+
 19April20
 19April20
 Successfully created a log file for errors using Gal's LogConfiguration structure. We are not sure what errors he actually keeps track of so we have to hunt for errors to log.
 Successfully created a log file for errors using Gal's LogConfiguration structure. We are not sure what errors he actually keeps track of so we have to hunt for errors to log.
 Cleaned up tasks.json so there isn't a bunch of unuseful text such as "terminal will be resused message" or "execting tasks" messages. This needs to be cleaned up a little bit more
 Cleaned up tasks.json so there isn't a bunch of unuseful text such as "terminal will be resused message" or "execting tasks" messages. This needs to be cleaned up a little bit more