From b18a2dc375a67e5bb1c629beab34586eafdc3b32 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 19 Jul 2024 08:59:28 -0700 Subject: [PATCH] Update Makefile for csv2entry and entry2csv The variables CSV2ENTRY and ENTRY2CSV have been added for the new rules that run the new rules, csv2entry and entry2csv, respectively, according to the log in 097dd49cc7e15cdc3458fe0b9e74b09da2e0852f. The rules have been added to .PHONY (thinking about this quickly I believe this is correct but if not it can be corrected) but not make help as I am not sure where in that rule they should be and I am also not sure what should be said even as a summary. The rules have a comment for which tool it runs but it also does not have a summary as I am not sure what it should say and I do not currently have the time to look into it. With this commit it is now easier to run these tools for testing and otherwise. --- Makefile | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index fc647d6b4..5ba00a9d2 100644 --- a/Makefile +++ b/Makefile @@ -66,6 +66,9 @@ GEN_STATUS= bin/gen-status.sh GEN_SITEMAP= bin/gen-sitemap.sh SORT_GITIGNORE= bin/sort.gitignore.sh FIND_MISSING_LINKS= bin/find-missing-links.sh +CSV2ENTRY= bin/csv2entry.sh +ENTRY2CSV= bin/entry2csv.sh + ############# @@ -242,10 +245,9 @@ indent.c: .PHONY: help genpath genfilelist verify_entry_files gen_authors gen_location gen_years \ find_missing_links test entry_index gen_top_html thanks gen_other_html quick_entry_index \ - gen_year_index quick_www www \ - untar_entry_tarball untar_year_tarball \ - form_entry_tarball form_year_tarball tar \ - gen_status gen_sitemap sitemap timestamp update + gen_year_index quick_www www untar_entry_tarball untar_year_tarball \ + form_entry_tarball form_year_tarball tar gen_status gen_sitemap \ + sitemap timestamp update csv2entry entry2csv # Suggest rules in this section # @@ -470,6 +472,21 @@ find_missing_links: ${FIND_MISSING_LINKS} -v 1 @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-=' +# csv2entry.sh +# +csv2entry: + @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-=' + ${CVS2ENTRY} -v 1 + @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-=' + +# entry2csv.sh +# +entry2csv: + @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-=' + ${ENTRY2CSV} -v 1 + @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-=' + + # mostly harmless tests # test: