X-Git-Url: https://git.ladys.computer/Shushe/blobdiff_plain/e7c797ffb120c0dac9be13b28d533d49d164b6d0..630f5bf06a645dbaad5f05a50526328fafad87ca:/README.markdown?ds=sidebyside diff --git a/README.markdown b/README.markdown index 2dd0eff..89dfd2e 100644 --- a/README.markdown +++ b/README.markdown @@ -93,6 +93,7 @@ In every case, you may supply your own implementation by overriding the - `cat` - `cp` +- `date` - `echo` - `file` - `find` @@ -102,6 +103,7 @@ In every case, you may supply your own implementation by overriding the - `rm` - `sed` - `sleep` +- `stat` - `test` - `touch` - `tr` (requires support for `-d`) @@ -115,16 +117,32 @@ The following additional variables can be used to control the behaviour - **`SRCDIR`:** The location of the source files (default: `sources`). + Multiple source directories can be provided, so long as the same + file subpath doesn’t exist in more than one of them. - **`INCLUDEDIR`:** - The location of the source files (default: `sources/includes`). + The location of source includes (default: `sources/includes`). This can be inside of `SRCDIR`, but needn’t be. + Multiple include directories can be provided, so long as the same + file subpath doesn’t exist in more than one of them. - **`BUILDDIR`:** The location of the (temporary) build directory (default: `build`). + `make clean` will delete this, and it is recommended that it not be + used for programs aside from ⛩️📰 书社. - **`DESTDIR`:** The location of directory to output files to (default: `public`). + `make install` will overwrite files in this directory which + correspond to those in `SRCDIR`. + It *will not* touch other files, including those generated from files + in `SRCDIR` which have since been deleted. + + Files are first compiled to `$(BUILDDIR)/public` before they are + copied to `DESTDIR`, so this folder is relatively quick and + inexpensive to re·create. + It’s reasonable to simply delete it before every `make install` to + ensure stale content is removed. - **`THISDIR`:** The location of the ⛩️📰 书社 `GNUmakefile`. @@ -138,12 +156,20 @@ The following additional variables can be used to control the behaviour - **`FINDOPTS`:** Options to pass to `find` when searching for source files (default: - `-LE`). + `-PE`). - **`FINDRULES`:** Rules to use with `find` when searching for source files (default: `-flags -nohidden -and -not -name '.*'`). +- **`FINDINCLUDEOPTS`:** + Options to pass to `find` when searching for includes (default: + `$(FINDOPTS)`). + +- **`FINDINCLUDERULES`:** + Rules to use with `find` when searching for includes (default: + `$(FINDRULES)`). + - **`PARSERS`:** A white·space‐separated list of parsers to use (default: `$(THISDIR)/parsers/*.xslt`). @@ -175,6 +201,8 @@ Supported magic numbers include :⁠— - `#!js` for `text/javascript` files - `@charset "` for `text/css` files - `#!tsv` for `text/tab-separated-values` files +- `%%` for `text/record-jar` files (unregistered; see + [[draft-phillips-record-jar-01][]]) Text formats with associated X·S·L·T parsers are wrapped in a H·T·M·L `