# Last edited on 2025-05-02 20:05:21 by stolfi # Creates the VMS samples: MAKEFILE := vms-samples.make # MAKERULES := MAKERULES := ${MAKEFILE} LANG := voyn .PHONY: all data export clean all: ./make-lang-all-data-and-tables ${LANG} clean: ??? ###################################################################### # Rules for a given ${ACTION} ("data", "export", "clean") # ACTION := ACTION.IS.UNDEFINED ifneq "${ACTION}" "ACTION.IS.UNDEFINED" .PHONY: everything ev-recurse ev-pos-${ACTION} everything: ev-recurse ev-pos-${ACTION} ev-recurse: ev-pos-data: ev-pos-export: ev-pos-clean: ###################################################################### # Rules for given ${ACTION} and ${BOOK} where # ${BOOK} = book to make ("prs", "lab", "maj", etc.) # BOOK := BOOK.IS.UNDEFINED ifneq "${BOOK}" "BOOK.IS.UNDEFINED" SMP := ${LANG}/${BOOK} gen/${SMP}: ; mkdir gen/${SMP} tex/${SMP}: ; mkdir tex/${SMP} ###################################################################### # Rules for given ${ACTION}, ${BOOK}, and ${SECTIONS} where # ${SECTIONS} = blank-separated list of section samples to # create for that book, excluding "tot.1". # SECTIONS := SECTIONS.IS.UNDEFINED ifneq "${SECTIONS}" "SECTIONS.IS.UNDEFINED" #---------------------------------------------------------------------- # Target files for this book and section-set # # Counts and summaries (minus file extension) #---------------------------------------------------------------------- .PHONY: single-book sb-recurse sb-pre-${ACTION} sb-pos-${ACTION} .PHONY: sb-show-sizes sb-check-sections-total single-book: sb-pre-${ACTION} sb-recurse sb-pos-${ACTION} sb-recurse: gen/${SMP} tex/${SMP} sb-pre-data: gen/${BOOK_SECTION_LIST} gen/${BOOK_SECTION_OK_LIST} sb-pos-data: sb-show-sizes sb-check-sections-total \ gen/${BOOK_RGB_CTS}.tex \ gen/${BOOK_SUMM}.tex # Export TEX files for the technical report: sb-pre-export: sb-pre-clean: sb-pos-clean: -rm -f gen/${BOOK_SECTION_LIST} gen/${BOOK_SECTION_OK_LIST} endif # End of ${ACTION}/${BOOK}/${SECTIONS} rules ###################################################################### ###################################################################### # Rules for given ${ACTION}/${BOOK}/${SEC} where # ${SEC} is a specific section (possibly "tot.1"). # SEC := SEC.IS.UNDEFINED ifneq "${SEC}" "SEC.IS.UNDEFINED" .PHONY: single-section ss-${ACTION} single-section: ss-${ACTION} ss-data: make-book-sec-all-data-and-tables.sh ${BOOK} ${SEC} ss-export: ss-clean: -rm -fv {gen,tex}/${LANG}/${BOOK}/${SEC}/{raw,gud,bad}.{evt,tlw,wfr,wdf} endif # End ${ACTION}/${BOOK}/${SEC} rules ###################################################################### endif # End ${ACTION}/${BOOK} rules ###################################################################### endif # End ${ACTION} rules ######################################################################