-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·18283 lines (15861 loc) · 704 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/make --makefile
################################################################################
# Composer CMS :: Primary Makefile
################################################################################
override VIM_OPTIONS := vim: filetype=make nowrap noexpandtab tabstop=8 list listchars=tab\:,.,trail\:=,extends\:>,precedes\:< foldenable foldmethod=marker foldlevel=0 foldtext=printf('%1s\ [%4s\ %5s-%5s]\ %-0.1s\ %s\ ',v\:foldlevel,(v\:foldend\ \-\ v\:foldstart\ \+\ 1),v\:foldstart,v\:foldend,v\:folddashes,substitute(getline(v\:foldstart),'\ \{\{\{\\d\\\+\ \\\|\\s\\\+','\ ','g'))
override VIM_FOLDING = $(subst -,$(if $(2),},{),---$(if $(1),$(1),1))
################################################################################
# {{{1 IMPORTANT NOTES
################################################################################
#
# This Makefile is the very heart of Composer CMS. All the other files in the
# repository are sourced from it. It is the only file needed to re-create the
# entire directory. This one file *IS* Composer CMS.
#
# The author of Composer CMS uses the Vim editor, because it is the bestest text
# editor in the whole wide world. You should consider using it, too. ;^}
#
# If you are not, this file will likely appear as one big long stream of text,
# which is perfectly fine... I guess. It has been structured and formatted in
# such a way as to to support this.
#
# However... if you are an awesome Vim user like me, it is highly recommended
# that you enable "modeline", which will use the optimized settings above. The
# "folding" feature has been used extensively, which makes this monstrosity much
# easier to work with, and the folding headers have also been prettified in the
# "modeline" above. Other touches, such as "nowrap" and "tabstop" will also
# preserve your sanity when wading into this behemoth. The quickest way to
# purchase these options, and a whole lot more, is to run the following Vim
# commands (or, better yet, put them in your ".vimrc"):
#
# :set modeline
# :set modelines=5
# :set modelineexpr
# :syntax on
# :highlight comment guibg=black ctermbg=none guifg=darkgreen ctermfg=darkgreen
# :highlight folded guibg=darkblue ctermbg=darkblue guifg=darkcyan ctermfg=darkcyan
#
# Whatever editor you are using... if you are not using a "tabstop" of "8", this
# file will absolutely make your eyes bleed. You have been warned. I'm
# honestly amazed you are reading it in the first place. <^D
#
# With all sincerity, though, thank you for your interest in Composer CMS. It
# has been a labor of love, and I believe it is an extraordinarily powerful
# toolkit for text-based command-line warriors like us. I hope it serves you as
# well as it serves me.
#
# Happy Hacking!
#
################################################################################
# {{{1 RELEASE PROCESS
################################################################################
#
## {{{2 UPDATE
#
# * Tooling Versions
# * Pandoc Options
# * `TYPE_TARGETS`
# * `PANDOC_OPTIONS`
# * `PANDOC_OPTIONS_ERROR`
#
## {{{2 VERIFY
#
### {{{3 CORE
#
# * `env - USER="${USER}" HOME="${HOME}" PATH="${PATH}" make +setup-all`
# * `rm ~/.vimrc; vi Makefile`
# * `make MAKEJOBS="0" COMPOSER_DEBUGIT="1" +release-all`
# * `make MAKEJOBS="0" COMPOSER_DEBUGIT="1" +release-+test`
# * `make +update-list`
# * `make COMPOSER_DEBUGIT="1" +test-dir`
# * `make +test-dir`
# * `make +test-list`
# * `make +test-file`
# * `make +test-COMPOSER_INCLUDE`
# * title: .variables .options .defaults
# * css: .variables .defaults .options
# * `make +test-targets`
# * README.html.0.0.html
# * README.html.1.1.html
# * README.html.x.x.html
# * README.pdf.0.0.pdf
# * README.pdf.2.2.pdf
# * README.pdf.x.1.pdf
# * README.pdf.x.x.pdf
# * README.epub.0.0.epub
# * README.epub.x.1.epub
# * README.epub.x.2.epub
# * README.epub.x.3.epub
# * README.epub.x.x.epub
# * README.revealjs.html.0.0.revealjs.html
# * README.revealjs.html.1.1.revealjs.html
# * README.revealjs.html.x.x.revealjs.html
# * README.docx.0.0.docx
# * README.docx.1.1.docx
# * README.docx.x.x.docx
# * `make headers-template`
# * `make COMPOSER_DEBUGIT="1" headers-template`
# * `make COMPOSER_DEBUGIT="1" c_type="[X]" headers-template-all`
# * `make headers-template-all`
# * `make COMPOSER_DEBUGIT="check config targets" +debug | less -rX`
# * `rm Composer-*.+debug-*.txt`
# * `make COMPOSER_DEBUGIT="help" +debug-file`
# * `mv Composer-*.+debug-*.txt artifacts/`
# * `make COMPOSER_DEBUGIT="1" targets`
# * `make COMPOSER_DEBUGIT="1" c_site="1" c_base="README.site" targets`
#
### {{{3 SITE
#
# * Browsers
# * Desktop
# * Mobile
# * Text-based
# * Pages
# * README.site.html
# * `make +setup-all`
# * `make COMPOSER_DEBUGIT="1" +setup-all`
# * _site/index.html
# * `make MAKEJOBS="0" site-template`
# * `make COMPOSER_DEBUGIT="1" site-template`
# * `make site-template-+test`
# * `make COMPOSER_DEBUGIT="1" site-template-+test`
# * `make site-list`
# * `make site-list c_list="null.md"`
# * `make site-list c_list="test.md"`
# * `make site-template-config`
# * `make site-all`
# * `make site-force`
# * `make site-template-list`
# * Paths
# * `override COMPOSER_EXPORT_DEFAULT := $(COMPOSER_ROOT)/../+$(COMPOSER_BASENAME)`
# * `override PUBLISH_ROOT := $(CURDIR)/+$(PUBLISH)`
# * `override PUBLISH_DIRS := [...] +$(CONFIGS)`
#
### {{{3 PERFORMANCE
#
# * `time make COMPOSER_DEBUGIT="0" FAIL`
# * `time make COMPOSER_DEBUGIT="0" FAIL 2>&1 | grep -E "^[+]"`
# * Make sure '--trace' debug output is identical
# * Minimize '$(shell)' and '/: override .* $(shell' calls
# * With and without 'c_site' enabled
# * `time make README.site.html`
# * `time make README.html`
# * `time make -C _site config`
# * `time make -C _site/config config`
# * `time make -C _site/config/_library-config config`
# * `make +test-speed`
# * `make MAKEJOBS="[X]" +test-speed`
# * `make MAKEJOBS="[X]" COMPOSER_DEBUGIT="1" +test-speed`
# * Update comments
#
## {{{2 PREPARE
#
### {{{3 MAKEFILE
#
# * Formatting
# * `make +test-heredoc`
# * Markers
# * '#>[ ]'
# * '#>[^ ]'
#
### {{{3 README
#
# * `make COMPOSER_DEBUGIT="1" help-help | less -rX`
# * `make COMPOSER_DEBUGIT="1" c_site= help-help | less -rX`
# * `make COMPOSER_DEBUGIT="1" COMPOSER_DOCOLOR= help-help | less -rX`
# * `override INPUT := commonmark`
# * `PANDOC_EXTENSIONS_*`
# * Spell check
# * `make +test-heredoc`
# * Output
# * Fits in $(COLUMNS) characters
# * Mouse select color handling
# * Test all "Reference" links in browser
# * `make README.html`
# * Minimize: `<col style="width: *%" />`
# * `make +setup-all`
# * Review each, including CSS
# * Create screenshot
#
## {{{2 PUBLISH
#
# * Check: `git diff main Makefile`
# * Update: COMPOSER_VERSION + COMPOSER_RELDATE + DATENOW
# * Release: `rm -frv {.[^.],}*; make +release-all`
# * Verify: `git diff main`
# * Commit: `git commit`, `git tag`
# * Branch: `git branch -D main`, `git checkout -B main`, `git checkout devel`
#
################################################################################
# {{{1 TODO
################################################################################
#
## {{{2 CODE
#
# --resource-path = integrate with COMPOSER_ART, COMPOSER_INCLUDES_DIRS, etc...?
# add aria information back in, because we are good people...
# https://getbootstrap.com/docs/5.2/components/dropdowns/#accessibility
# https://getbootstrap.com/docs/4.5/utilities/screen-readers
# remove once fixed in upstream
# [Google Firebase] = $(UPGRADE)-$(notdir $(FIREBASE_DIR))
# $(MKDIR) $(call COMPOSER_CONV,$(CURDIR)/,$(MDVIEWER_DIR))/vendor
# MDVIEWER_SASS_VER
# *_HACK
#
## {{{2 HTML
#
# metadata / keywords
#
## {{{2 PDF / EPUB / DOCX
#
# man pandoc = REPRODUCIBLE BUILDS = https://pandoc.org/MANUAL.html#reproducible-builds
# Some of the document formats pandoc targets (such as EPUB, docx, and ODT) include build timestamps in the generated document. That means that the files generated on successive builds will differ, even if the source does not. To avoid this, set the SOURCE_DATE_EPOCH environment variable, and the timestamp will be taken from it instead of the current time. SOURCE_DATE_EPOCH should contain an integer unix timestamp (specifying the number of second since midnight UTC January 1, 1970).
# Some document formats also include a unique identifier. For EPUB, this can be set explicitly by setting the identifier metadata field (see EPUB Metadata, above).
#
## {{{2 PDF
#
# two different templates, with an option, for left/right versus left-only headers/footers
# maybe also a customizable version, akin to the resume and agreement formats i use
# these can live in an "artifacts/templates" directory, and can be "ln" as ".composer-pdf.header" or "file.pdf.header", as desired
# https://github.com/alexeygumirov/pandoc-for-pdf-how-to
# https://github.com/Wandmalfarbe/pandoc-latex-template
# https://learnbyexample.github.io/customizing-pandoc
# https://dev.to/learnbyexample/customizing-pandoc-to-generate-beautiful-pdfs-from-markdown-3lbj
# http://distrib-coffee.ipsl.jussieu.fr/pub/mirrors/ctan/macros/latex/contrib/fancyhdr/fancyhdr.pdf
# https://en.wikibooks.org/wiki/LaTeX/Page_Layout
# \\usepackage{showframe}
# --variable="documentclass=book" \
# --variable="classoption=twosides" \
# --variable="classoption=draft"
#
## {{{2 EPUB
#
# --epub-metadata="[...]" --epub-cover-image="[...]" --epub-embed-font="[...]"
#
## {{{2 DOCX
#
# pandoc --from docx --to markdown --extract-media=README.markdown.files --track-changes=all --output=README.markdown README.docx ; vdiff README.md.txt README.markdown
# --from "docx+styles"
# --from "docx" --track-changes="all"
# --from "docx|epub" --extract-media="[...]"
#
################################################################################
# }}}1
################################################################################
# {{{1 Composer Globals
################################################################################
########################################
## {{{2 Heart & Soul
########################################
override COMPOSER_BASENAME := Composer
override COMPOSER_TINYNAME := composer
override COMPOSER_VERSION := v3.1
override COMPOSER_RELDATE := 2024-08-10
override COMPOSER_COMPOSER := Gary B. Genett
override COMPOSER_DOMAIN := garybgenett.net
override COMPOSER_HOMEPAGE := http://www.$(COMPOSER_DOMAIN)/projects/composer
override COMPOSER_REPOPAGE := https://github.com/garybgenett/composer
override COMPOSER_CONTACT := $(COMPOSER_TINYNAME)@$(COMPOSER_DOMAIN)
override COMPOSER_TECHNAME := $(COMPOSER_BASENAME) CMS
override COMPOSER_FULLNAME := $(COMPOSER_TECHNAME) $(COMPOSER_VERSION)
override COMPOSER_FILENAME := $(COMPOSER_BASENAME)-$(COMPOSER_VERSION)
override COMPOSER_HEADLINE := $(COMPOSER_TECHNAME): Content Make System
override COMPOSER_LICENSE_HEADLINE := $(COMPOSER_TECHNAME): License
override COMPOSER_LICENSE := License: GPL
#>override COMPOSER_CLOSING := Go Do A Thing
override COMPOSER_CLOSING := Go Make A Thing
override COMPOSER_TAGLINE := *Happy Making!*
override COPYRIGHT_FULL := Copyright (c) 2014, 2015, 2022, $(COMPOSER_COMPOSER)
override COPYRIGHT_SHORT := Copyright (c) 2022, $(COMPOSER_COMPOSER)
override CREATED_TAGLINE := Composed with $(COMPOSER_TECHNAME)
override COMPOSER_CMS := .$(COMPOSER_BASENAME)
override COMPOSER_TIMESTAMP = [$(COMPOSER_FULLNAME) $(DIVIDE) $(call DATESTAMP,$(DATENOW))]
override COMPOSER_SETTINGS := .$(COMPOSER_TINYNAME).mk
override COMPOSER_YML := .$(COMPOSER_TINYNAME).yml
override COMPOSER_LOG_DEFAULT := .$(COMPOSER_TINYNAME).log
override COMPOSER_EXT_DEFAULT := .md
override COMPOSER_EXT_SPECIAL := $(COMPOSER_EXT_DEFAULT).cms
########################################
## {{{2 Locations
########################################
override MAKEFILE_LIST := $(abspath $(MAKEFILE_LIST))
override COMPOSER := $(lastword $(MAKEFILE_LIST))
override COMPOSER_SELF := $(firstword $(MAKEFILE_LIST))
override COMPOSER_DIR := $(abspath $(dir $(COMPOSER)))
override COMPOSER_ROOT := $(abspath $(dir $(lastword $(filter-out $(COMPOSER),$(MAKEFILE_LIST)))))
ifeq ($(COMPOSER_ROOT),)
override COMPOSER_ROOT := $(CURDIR)
endif
override COMPOSER_CURDIR :=
override COMPOSER_TMP := $(CURDIR)/.$(COMPOSER_TINYNAME).tmp
override COMPOSER_TMP_FILE = $(if $(1),$(notdir $(COMPOSER_TMP)),$(COMPOSER_TMP))/$(notdir $(c_base)).$(EXTN_OUTPUT).$(call DATESTRING,$(DATENOW))
#> update: includes duplicates
override _ := +
override COMPOSER_EXPORT_DEFAULT := $(COMPOSER_ROOT)/$(_)$(COMPOSER_BASENAME)
override COMPOSER_EXPORT := $(COMPOSER_EXPORT_DEFAULT)
override COMPOSER_LIBRARY_ROOT :=
override COMPOSER_LIBRARY :=
override COMPOSER_SRC := $(COMPOSER_DIR)/.sources
override COMPOSER_ART := $(COMPOSER_DIR)/artifacts
override COMPOSER_BIN := $(COMPOSER_DIR)/bin
#> update: includes duplicates
override TYPE_HTML := html
override PUBLISH := site
override COMPOSER_CUSTOM := $(COMPOSER_ART)/$(COMPOSER_TINYNAME)/$(COMPOSER_TINYNAME)
override CUSTOM_PUBLISH_SH := $(COMPOSER_CUSTOM).$(PUBLISH).sh
override CUSTOM_PUBLISH_CSS := $(COMPOSER_CUSTOM).$(PUBLISH).css
override CUSTOM_PUBLISH_CSS_OVERLAY = $(COMPOSER_CUSTOM).$(PUBLISH).overlay.$(1).css
override CUSTOM_HTML_CSS := $(COMPOSER_CUSTOM).html.css
override CUSTOM_LPDF_LATEX := $(COMPOSER_CUSTOM).pdf.latex
override CUSTOM_PRES_CSS := $(COMPOSER_CUSTOM).revealjs.css
override COMPOSER_CSS_PUBLISH := .$(notdir $(COMPOSER_CUSTOM))-$(PUBLISH).css
override COMPOSER_CSS := .$(notdir $(COMPOSER_CUSTOM))-$(TYPE_HTML).css
override COMPOSER_IMAGES := $(COMPOSER_ART)/images
override COMPOSER_LOGO := $(COMPOSER_IMAGES)/logo.img
override COMPOSER_LOGO_VER := v1.0
override COMPOSER_ICON := $(COMPOSER_IMAGES)/icon.img
override COMPOSER_ICON_VER := v1.0
override COMPOSER_DAT := $(COMPOSER_ART)/pandoc
override BOOTSTRAP_DEF_JS := $(COMPOSER_ART)/bootstrap/bootstrap-default.js
override BOOTSTRAP_DEF_CSS := $(COMPOSER_ART)/bootstrap/bootstrap-default.css
override BOOTSTRAP_ART_JS := $(COMPOSER_ART)/bootstrap/bootstrap.js
override BOOTSTRAP_ART_CSS := $(COMPOSER_ART)/bootstrap/bootstrap.css
#> update: OUTPUT_FILENAME
#> update: $(TESTING_DIR).*$(COMPOSER_ROOT)
override OUTPUT_FILENAME = $(COMPOSER_FILENAME).$(1)-$(call DATESTRING,$(DATENOW)).$(EXTN_TEXT)
override TESTING_DIR := $(COMPOSER_DIR)/.$(COMPOSER_FILENAME)
########################################
## {{{2 Values
########################################
override COMPOSER_RELEASE :=
ifeq ($(COMPOSER_DIR),$(CURDIR))
override COMPOSER_RELEASE := 1
endif
#> update: includes duplicates
override HELPOUT := help
override EXAMPLE := template
override PUBLISH := site
export COMPOSER_RELEASE_EXAMPLE ?=
ifneq ($(or \
$(filter \
$(HELPOUT)% \
$(PUBLISH)-$(EXAMPLE)% \
,\
$(MAKECMDGOALS) \
) ,\
$(COMPOSER_RELEASE_EXAMPLE) ,\
),)
export COMPOSER_RELEASE_EXAMPLE := 1
endif
#> update: TYPE_TARGETS
override TYPE_DEFAULT := html
override EXTN_DEFAULT := $(TYPE_DEFAULT)
override OUT_README := README
override OUT_LICENSE := LICENSE
override OUT_MANUAL := $(COMPOSER_FILENAME).Manual
override SPECIAL_VAL := 0
override CSS_ALT := css_alt
override COLUMNS := 80
override EOL := lf
override HEAD_MAIN := 1
override DEPTH_DEFAULT := 2
override DEPTH_MAX := 6
########################################
## {{{2 Tokens
########################################
#> update: includes duplicates
override . := .
override _ := +
override / = $(patsubst $(.)%,$(if $(2),[$(.)])%,$(patsubst $(_)%,$(if $(2),[$(_)])%,$(1)))
override MARKER := >>
override DIVIDE := ::
override EXPAND := ...
override TOKEN := ~---~
override COMMA := ,
override NULL :=
override define NEWLINE =
$(NULL)
$(NULL)
endef
override MENU_SELF := _
#> update: del(.*)
override KEY_UPDATED := $(.)updated
override KEY_FILEPATH := $(.)path
override KEY_DATE := $(.)date
override KEY_DATE_PARSE := input
override KEY_DATE_LIBRARY := index
override HTML_SPACE :=
override HTML_BREAK := <p></p>
#>override HTML_HIDE := &\#x0000;
#>override HTML_HIDE := &\#xfeff;
#>override HTML_HIDE := <wbr>
#>override HTML_HIDE := <br hidden>
override HTML_HIDE := <span hidden>$(EXPAND)</span>
########################################
## {{{2 Macros
########################################
override COMPOSER_REGEX_OVERRIDE = override[[:space:]]+($(if $(1),$(1),[^[:space:]]+))[[:space:]]+[$(if $(2),?,:)][=]
override COMPOSER_REGEX_DEFINE = override[[:space:]]+(define[[:space:]]+)?($(if $(1),$(1),[^[:space:]]+))[[:space:]]+[=]
override COMPOSER_FIND = $(firstword $(wildcard $(abspath $(addsuffix /$(2),$(1)))))
override define READ_ALIASES =
$(if $(COMPOSER_DEBUGIT_ALL),\
$(info #> ALIAS [$(1)|$($(1))|$(origin $(1))]) \
$(info #> ALIAS [$(2)|$($(2))|$(origin $(2))]) \
) \
$(if $(filter undefined,$(origin $(2))),\
$(if $(filter-out undefined,$(origin $(1))),$(eval override $(2) := $($(1)))) \
) \
$(eval override undefine $(1))
endef
################################################################################
# {{{1 Include Files
################################################################################
########################################
## {{{2 Duplicates
########################################
#> update: includes duplicates
#> update: READ_ALIASES
$(call READ_ALIASES,V,COMPOSER_DEBUGIT)
override COMPOSER_DEBUGIT_ALL :=
ifeq ($(COMPOSER_DEBUGIT),$(SPECIAL_VAL))
override COMPOSER_DEBUGIT_ALL := $(COMPOSER_DEBUGIT)
endif
override PATH_LIST := $(subst :, ,$(PATH))
export override SHELL := $(call COMPOSER_FIND,$(PATH_LIST),bash) $(if $(COMPOSER_DEBUGIT_ALL),-x)
override SED := $(call COMPOSER_FIND,$(PATH_LIST),sed) -r
########################################
## {{{2 Source Files
########################################
#> update: COMPOSER_INCLUDE[^S]
override define SOURCE_INCLUDES =
$(if $(wildcard $(1)/$(COMPOSER_SETTINGS)),\
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> SOURCE [$(1)/$(COMPOSER_SETTINGS)])) \
$(foreach FILE,\
$(shell \
$(SED) -n "/^$(call COMPOSER_REGEX_OVERRIDE,COMPOSER_INCLUDE).*$$/p" $(1)/$(COMPOSER_SETTINGS) \
| $(SED) -e "s|[[:space:]]+|$(TOKEN)|g" -e "s|$$| |g" \
),\
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> OVERRIDE [$(subst $(TOKEN), ,$(FILE))])) \
$(eval $(subst $(TOKEN), ,$(FILE))) \
))
endef
$(call SOURCE_INCLUDES,$(COMPOSER_DIR))
ifeq ($(COMPOSER_RELEASE),)
$(call SOURCE_INCLUDES,$(CURDIR))
endif
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> COMPOSER_INCLUDE [$(COMPOSER_INCLUDE)]))
########################################
## {{{2 Directory Tree
########################################
#> update: COMPOSER_INCLUDE[^S]
override COMPOSER_INCLUDES_DIRS :=
$(foreach FILE,$(abspath $(dir $(MAKEFILE_LIST))),\
$(eval override COMPOSER_INCLUDES_DIRS := $(FILE) $(COMPOSER_INCLUDES_DIRS)) \
)
ifneq ($(lastword $(COMPOSER_INCLUDES_DIRS)),$(CURDIR))
override COMPOSER_INCLUDES_DIRS := $(COMPOSER_INCLUDES_DIRS) $(CURDIR)
endif
ifneq ($(origin COMPOSER_INCLUDE),undefined)
ifneq ($(wildcard $(COMPOSER_INCLUDE)),)
override COMPOSER_INCLUDES_DIRS := $(abspath $(wildcard $(COMPOSER_INCLUDE)))
else ifeq ($(COMPOSER_INCLUDE),)
ifneq ($(firstword $(COMPOSER_INCLUDES_DIRS)),$(lastword $(COMPOSER_INCLUDES_DIRS)))
override COMPOSER_INCLUDES_DIRS := $(firstword $(COMPOSER_INCLUDES_DIRS)) $(lastword $(COMPOSER_INCLUDES_DIRS))
endif
endif
endif
override COMPOSER_INCLUDES_DIRS := $(strip $(COMPOSER_INCLUDES_DIRS))
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> MAKEFILE_LIST [$(MAKEFILE_LIST)]))
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> COMPOSER_INCLUDES_DIRS [$(COMPOSER_INCLUDES_DIRS)]))
########################################
## {{{2 Configuration Files
########################################
override COMPOSER_INCLUDES :=
$(foreach FILE,$(addsuffix /$(COMPOSER_SETTINGS),$(COMPOSER_INCLUDES_DIRS)),\
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> WILDCARD [$(FILE)])) \
$(if $(wildcard $(FILE)),\
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> INCLUDE [$(FILE)])) \
$(eval override MAKEFILE_LIST := $(filter-out $(FILE),$(MAKEFILE_LIST))) \
$(eval override COMPOSER_INCLUDES := $(COMPOSER_INCLUDES) $(FILE)) \
$(eval override COMPOSER_CURDIR := $(filter $(CURDIR),$(abspath $(dir $(FILE))))) \
$(eval include $(FILE)) \
) \
)
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> COMPOSER_INCLUDES [$(COMPOSER_INCLUDES)]))
#> update: WILDCARD_YML
override COMPOSER_YML_LIST :=
$(foreach FILE,$(addsuffix /$(COMPOSER_YML),$(COMPOSER_INCLUDES_DIRS)),\
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> WILDCARD_YML [$(FILE)])) \
$(if $(wildcard $(FILE)),\
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> INCLUDE_YML [$(FILE)])) \
$(eval override COMPOSER_YML_LIST := $(COMPOSER_YML_LIST) $(FILE)) \
) \
)
$(if $(COMPOSER_DEBUGIT_ALL),$(info #> COMPOSER_YML_LIST [$(COMPOSER_YML_LIST)]))
################################################################################
# {{{1 Make Settings
################################################################################
.POSIX:
.SUFFIXES:
########################################
## {{{2 Flags
########################################
#>override MAKEFILE := $(notdir $(firstword $(MAKEFILE_LIST)))
override MAKEFILE := Makefile
override MAKEFLAGS_ENV = --no-builtin-rules --no-builtin-variables $(if $(1),--print-directory,--no-print-directory)
override MAKEFLAGS_NOFAIL := --keep-going
override MAKEFLAGS_DOFAIL := --stop
override MAKEFLAGS_END := $(if $(filter k%,$(MAKEFLAGS)),$(MAKEFLAGS_NOFAIL),$(MAKEFLAGS_DOFAIL))
#> update: includes duplicates
override TARGETS := targets
override PHANTOM := $(.)$(TARGETS)
ifneq ($(or \
$(filter $(COMPOSER_DEBUGIT),$(PHANTOM)) ,\
$(COMPOSER_DEBUGIT_ALL) ,\
),)
#>override MAKEFLAGS := $(MAKEFLAGS_ENV,1) --debug=verbose --trace
override MAKEFLAGS := $(MAKEFLAGS_ENV,1) --debug=verbose
else
#>override MAKEFLAGS := $(MAKEFLAGS_ENV) --debug=none --silent
override MAKEFLAGS := $(MAKEFLAGS_ENV) --debug=none
endif
export override MAKEFLAGS := $(MAKEFLAGS) $(MAKEFLAGS_END)
########################################
## {{{2 Jobs
########################################
override MAKEJOBS_DEFAULT := 1
#> update: READ_ALIASES
$(call READ_ALIASES,J,MAKEJOBS)
override MAKEJOBS ?= $(MAKEJOBS_DEFAULT)
ifeq ($(MAKEJOBS),)
override MAKEJOBS := $(MAKEJOBS_DEFAULT)
endif
ifeq ($(MAKEJOBS),1)
.NOTPARALLEL:
endif
override MAKEJOBS_OPTS :=
ifeq ($(MAKEJOBS),1)
override MAKEJOBS_OPTS := --jobs=$(MAKEJOBS) --output-sync=none
else
#>override MAKEJOBS_OPTS := --jobs=$(MAKEJOBS) --output-sync=line
override MAKEJOBS_OPTS := --jobs=$(MAKEJOBS) --output-sync=none
endif
ifeq ($(MAKEJOBS),$(SPECIAL_VAL))
override MAKEJOBS_OPTS := $(subst --jobs=$(MAKEJOBS),--jobs,$(MAKEJOBS_OPTS))
endif
export override MAKEFLAGS := $(MAKEFLAGS) $(MAKEJOBS_OPTS)
########################################
## {{{2 System
########################################
#> update: includes duplicates
override UNAME := $(call COMPOSER_FIND,$(PATH_LIST),uname) --all
override OS_UNAME := $(shell $(UNAME) 2>/dev/null)
override OS_TYPE :=
ifneq ($(filter Linux,$(OS_UNAME)),)
override OS_TYPE := Linux
else ifneq ($(filter Windows,$(OS_UNAME)),)
override OS_TYPE := Windows
else ifneq ($(filter Darwin,$(OS_UNAME)),)
override OS_TYPE := Darwin
endif
################################################################################
# {{{1 Composer Options
################################################################################
#> update: includes duplicates
#> update: COMPOSER_OPTIONS
########################################
## {{{2 Export
########################################
ifneq ($(origin _EXPORT_DIRECTORY),override)
override _EXPORT_DIRECTORY := $(COMPOSER_EXPORT)
else
override COMPOSER_EXPORT := $(_EXPORT_DIRECTORY)
endif
ifneq ($(origin _EXPORT_GIT_REPO),override)
override _EXPORT_GIT_REPO :=
endif
ifneq ($(origin _EXPORT_GIT_BNCH),override)
override _EXPORT_GIT_BNCH :=
endif
ifneq ($(origin _EXPORT_FIRE_ACCT),override)
override _EXPORT_FIRE_ACCT :=
endif
ifneq ($(origin _EXPORT_FIRE_PROJ),override)
override _EXPORT_FIRE_PROJ :=
endif
########################################
## {{{2 Control
########################################
#> update: READ_ALIASES
$(call READ_ALIASES,V,COMPOSER_DEBUGIT)
$(call READ_ALIASES,C,COMPOSER_DOCOLOR)
$(call READ_ALIASES,K,COMPOSER_KEEPING)
#> update: COMPOSER_INCLUDE[^S]
override COMPOSER_DEBUGIT ?=
override COMPOSER_DOCOLOR ?= 1
override COMPOSER_INCLUDE ?= 1
override COMPOSER_DEPENDS ?=
override COMPOSER_KEEPING ?= 100
override COMPOSER_LOG ?= $(COMPOSER_LOG_DEFAULT)
override COMPOSER_EXT ?= $(COMPOSER_EXT_DEFAULT)
override COMPOSER_DEBUGIT_ALL :=
ifeq ($(COMPOSER_DEBUGIT),$(SPECIAL_VAL))
override COMPOSER_DEBUGIT_ALL := $(COMPOSER_DEBUGIT)
endif
#>ifeq ($(COMPOSER_EXT),)
#>override COMPOSER_EXT := $(COMPOSER_EXT_DEFAULT)
#>endif
override COMPOSER_EXT := $(notdir $(COMPOSER_EXT))
#> update: COMPOSER_TARGETS.*=
#> update: COMPOSER_SUBDIRS.*=
override COMPOSER_TARGETS ?=
override COMPOSER_SUBDIRS ?=
override COMPOSER_EXPORTS ?=
override COMPOSER_IGNORES ?=
########################################
## {{{2 Formatting
########################################
#> update: READ_ALIASES
$(call READ_ALIASES,S,c_site)
$(call READ_ALIASES,T,c_type)
$(call READ_ALIASES,B,c_base)
$(call READ_ALIASES,L,c_list)
$(call READ_ALIASES,a,c_lang)
$(call READ_ALIASES,g,c_logo)
$(call READ_ALIASES,i,c_icon)
$(call READ_ALIASES,c,c_css)
$(call READ_ALIASES,t,c_toc)
$(call READ_ALIASES,l,c_level)
$(call READ_ALIASES,m,c_margin)
$(call READ_ALIASES,mt,c_margin_top)
$(call READ_ALIASES,mb,c_margin_bottom)
$(call READ_ALIASES,ml,c_margin_left)
$(call READ_ALIASES,mr,c_margin_right)
$(call READ_ALIASES,o,c_options)
#>override c_base ?= $(OUT_README)
#>override c_list ?= $(c_base)$(COMPOSER_EXT)
override c_site ?=
override c_type ?= $(TYPE_DEFAULT)
override c_base ?=
override c_list ?=
override c_lang ?= en-US
override c_logo ?= $(COMPOSER_LOGO)
override c_icon ?= $(COMPOSER_ICON)
override c_css ?=
override c_toc ?=
override c_level ?= $(DEPTH_DEFAULT)
override c_margin ?= 0.8in
override c_margin_top ?=
override c_margin_bottom ?=
override c_margin_left ?=
override c_margin_right ?=
override c_options ?=
override c_list_var = $(strip $(if $($(notdir $(if $(1),$(1),$(c_base))).$(if $(2),$(2),$(EXTN_OUTPUT))), $($(notdir $(if $(1),$(1),$(c_base))).$(if $(2),$(2),$(EXTN_OUTPUT))),$(if $($(notdir $(if $(1),$(1),$(c_base))).*), $($(notdir $(if $(1),$(1),$(c_base))).*),$(c_list))))
override c_list_var_source = $(strip $(if $($(notdir $(if $(1),$(1),$(c_base))).$(if $(2),$(2),$(EXTN_OUTPUT))),$(if $(3),\$$$$,\$$)($(notdir $(if $(1),$(1),$(c_base))).$(if $(2),$(2),$(EXTN_OUTPUT))),$(if $($(notdir $(if $(1),$(1),$(c_base))).*),$(if $(3),\$$$$,\$$)($(notdir $(if $(1),$(1),$(c_base))).*))))
override c_list_file :=
########################################
## {{{2 Publish
########################################
########################################
### {{{3 Values
########################################
override PUBLISH_KEEPING := 256
override PUBLISH_FILE_HEADER := _header$(COMPOSER_EXT_SPECIAL)
override PUBLISH_FILE_FOOTER := _footer$(COMPOSER_EXT_SPECIAL)
override PUBLISH_FILE_APPEND := _append$(COMPOSER_EXT_SPECIAL)
override PUBLISH_DATES_FORMAT_DEFAULT := 2006-01-02 15:04 -07:00
override PUBLISH_DATES_INTERNAL_FORMAT := 2006-01-02T15:04:05-07:00
override PUBLISH_DATES_INTERNAL_NULL := 1970-01-01T00:00:00+00:00
override PUBLISH_DATES_TIMEZONE_FORMAT := [-]07[:]00
override PUBLISH_DATES_TIMEZONE_DEFAULT := [+]00[:]00
########################################
### {{{3 Configuration
########################################
override PUBLISH_COMPOSER := 1
override PUBLISH_COMPOSER_ALT := $(PUBLISH_COMPOSER)
override PUBLISH_COMPOSER_MOD := null
override PUBLISH_CSS_OVERLAY := dark
override PUBLISH_CSS_OVERLAY_ALT := null
override PUBLISH_CSS_OVERLAY_MOD := $(PUBLISH_CSS_OVERLAY_ALT)
override PUBLISH_COPY_PROTECT := null
override PUBLISH_COPY_PROTECT_ALT := 1
override PUBLISH_COPY_PROTECT_MOD := $(PUBLISH_COPY_PROTECT_ALT)
override PUBLISH_HEADER := null
override PUBLISH_HEADER_ALT = $(PUBLISH_CMD_ROOT)/$(word 3,$(PUBLISH_DIRS))/$(PUBLISH_FILE_HEADER)
override PUBLISH_HEADER_MOD = [ $(PUBLISH_HEADER_ALT), $(PUBLISH_HEADER_ALT) ]
override PUBLISH_FOOTER := null
override PUBLISH_FOOTER_ALT = $(PUBLISH_CMD_ROOT)/$(word 3,$(PUBLISH_DIRS))/$(PUBLISH_FILE_FOOTER)
override PUBLISH_FOOTER_MOD = [ $(PUBLISH_FOOTER_ALT), $(PUBLISH_FOOTER_ALT) ]
override PUBLISH_COLS_BREAK := lg
override PUBLISH_COLS_BREAK_ALT := md
override PUBLISH_COLS_BREAK_MOD := $(PUBLISH_COLS_BREAK_ALT)
override PUBLISH_COLS_SCROLL := 1
override PUBLISH_COLS_SCROLL_ALT := null
override PUBLISH_COLS_SCROLL_MOD := $(SPECIAL_VAL)
override PUBLISH_COLS_ORDER_L := 1
override PUBLISH_COLS_ORDER_C := 2
override PUBLISH_COLS_ORDER_R := 3
override PUBLISH_COLS_REORDER_L := 1
override PUBLISH_COLS_REORDER_C := 3
override PUBLISH_COLS_REORDER_R := 2
override PUBLISH_COLS_ORDER_L_ALT := 1
override PUBLISH_COLS_ORDER_C_ALT := 3
override PUBLISH_COLS_ORDER_R_ALT := 2
override PUBLISH_COLS_REORDER_L_ALT := 2
override PUBLISH_COLS_REORDER_C_ALT := 3
override PUBLISH_COLS_REORDER_R_ALT := 1
override PUBLISH_COLS_ORDER_L_MOD := $(PUBLISH_COLS_ORDER_L_ALT)
override PUBLISH_COLS_ORDER_C_MOD := $(PUBLISH_COLS_ORDER_C_ALT)
override PUBLISH_COLS_ORDER_R_MOD := $(PUBLISH_COLS_ORDER_R_ALT)
override PUBLISH_COLS_REORDER_L_MOD := $(SPECIAL_VAL)
override PUBLISH_COLS_REORDER_C_MOD := $(PUBLISH_COLS_REORDER_C_ALT)
override PUBLISH_COLS_REORDER_R_MOD := $(PUBLISH_COLS_REORDER_R_ALT)
override PUBLISH_COLS_SIZE_L := 3
override PUBLISH_COLS_SIZE_C := 7
override PUBLISH_COLS_SIZE_R := 2
override PUBLISH_COLS_RESIZE_L := 6
override PUBLISH_COLS_RESIZE_C := 12
override PUBLISH_COLS_RESIZE_R := 6
override PUBLISH_COLS_SIZE_L_ALT := 12
override PUBLISH_COLS_SIZE_C_ALT := 9
override PUBLISH_COLS_SIZE_R_ALT := 3
override PUBLISH_COLS_RESIZE_L_ALT := 12
override PUBLISH_COLS_RESIZE_C_ALT := 12
override PUBLISH_COLS_RESIZE_R_ALT := $(SPECIAL_VAL)
override PUBLISH_COLS_SIZE_L_MOD := $(PUBLISH_COLS_SIZE_L_ALT)
override PUBLISH_COLS_SIZE_C_MOD := $(PUBLISH_COLS_SIZE_C_ALT)
override PUBLISH_COLS_SIZE_R_MOD := $(PUBLISH_COLS_SIZE_R_ALT)
override PUBLISH_COLS_RESIZE_L_MOD := $(PUBLISH_COLS_RESIZE_L_ALT)
override PUBLISH_COLS_RESIZE_C_MOD := $(PUBLISH_COLS_RESIZE_C_ALT)
override PUBLISH_COLS_RESIZE_R_MOD := 12
#> update: PUBLISH_DATES_PARSE_ALT = PUBLISH_PAGES_DATE_FORMAT
override PUBLISH_DATES_PARSE_1 := $(PUBLISH_DATES_INTERNAL_FORMAT)
override PUBLISH_DATES_PARSE_2 := $(PUBLISH_DATES_FORMAT_DEFAULT)
override PUBLISH_DATES_PARSE_3 := 2006-01-02
override PUBLISH_DATES_PARSE_4 := January 2, 2006
override PUBLISH_DATES_PARSE_ALT := January _2, 2006 3:04 PM MST -07:00
override PUBLISH_DATES_PARSE_MOD := $(COMPOSER_VERSION) (2006-01-02)
override PUBLISH_DATES_DISPLAY := 2006-01-02
#WORKING:FIX:EXCLUDE:DATE:CONV:META
#override PUBLISH_DATES_DISPLAY_ALT := 2006-01-02 03:04 PM MST
override PUBLISH_DATES_DISPLAY_ALT := 2006-01-02
override PUBLISH_DATES_DISPLAY_MOD := $(PUBLISH_DATES_DISPLAY_ALT)
override PUBLISH_DATES_LIBRARY := 2006
#WORKING:FIX:EXCLUDE:DATE:CONV:META
#override PUBLISH_DATES_LIBRARY_ALT := 2006-01
override PUBLISH_DATES_LIBRARY_ALT := 2006
override PUBLISH_DATES_LIBRARY_MOD := $(PUBLISH_DATES_LIBRARY_ALT)
override PUBLISH_DATES_TIMEZONE := -08:00
override PUBLISH_DATES_TIMEZONE_ALT := -07:00
override PUBLISH_DATES_TIMEZONE_MOD := null
########################################
### {{{3 Helpers
########################################
#> update: metalist
override PUBLISH_METATITL := title
override PUBLISH_METADATE := date
override PUBLISH_METAAUTH := author
override PUBLISH_METATAGS := tags
override PUBLISH_METAINFO_DISPLAY := <$(PUBLISH_METADATE)> $(DIVIDE) <$(PUBLISH_METATITL)><|> -- <$(PUBLISH_METAAUTH)|; >
override PUBLISH_METAINFO_DISPLAY_ALT := <$(PUBLISH_METATITL)>$(HTML_SPACE)$(HTML_SPACE)*(<$(PUBLISH_METADATE)>)*<|><br>*-- <$(PUBLISH_METAAUTH)| -- >*<br>*. <$(PUBLISH_METATAGS)| . >*
override PUBLISH_METAINFO_DISPLAY_MOD := <$(PUBLISH_METATITL)>$(HTML_SPACE)$(HTML_SPACE)*(<$(PUBLISH_METADATE)>)*<|><br>*-- <$(PUBLISH_METAAUTH)>*<br>*. <$(PUBLISH_METATAGS)>*
override PUBLISH_METAINFO_EMPTY := *(no metadata)*
override PUBLISH_METAINFO_EMPTY_ALT := *(none)*
override PUBLISH_METAINFO_EMPTY_MOD := null
override PUBLISH_METATITL_TITLE := Title: <name>
override PUBLISH_METATITL_TITLE_ALT := Article: <name>
override PUBLISH_METATITL_TITLE_MOD := null
override PUBLISH_METATITL_DISPLAY := Title: <|>, <|>
override PUBLISH_METATITL_DISPLAY_ALT := <ul><li><|></li><li><|></li></ul>
override PUBLISH_METATITL_DISPLAY_MOD := null
override PUBLISH_METATITL_EMPTY := *(no $(PUBLISH_METATITL))*
override PUBLISH_METATITL_EMPTY_ALT := *(none)*
override PUBLISH_METATITL_EMPTY_MOD := null
override PUBLISH_METADATE_TITLE := Date: <name>
override PUBLISH_METADATE_TITLE_ALT := Year: <name>
override PUBLISH_METADATE_TITLE_MOD := null
override PUBLISH_METADATE_DISPLAY := Date: <|>, <|>
override PUBLISH_METADATE_DISPLAY_ALT := <ul><li><|></li><li><|></li></ul>
override PUBLISH_METADATE_DISPLAY_MOD := null
override PUBLISH_METADATE_EMPTY := *(no $(PUBLISH_METADATE))*
override PUBLISH_METADATE_EMPTY_ALT := *(none)*
override PUBLISH_METADATE_EMPTY_MOD := null
override PUBLISH_METAAUTH_TITLE := Author: <name>
override PUBLISH_METAAUTH_TITLE_ALT := Creator: <name>
override PUBLISH_METAAUTH_TITLE_MOD := null
override PUBLISH_METAAUTH_DISPLAY := Authors: <|>, <|>
override PUBLISH_METAAUTH_DISPLAY_ALT := <ul><li><|></li><li><|></li></ul>
override PUBLISH_METAAUTH_DISPLAY_MOD := null
override PUBLISH_METAAUTH_EMPTY := *(no $(PUBLISH_METAAUTH))*
override PUBLISH_METAAUTH_EMPTY_ALT := *(none)*
override PUBLISH_METAAUTH_EMPTY_MOD := null
override PUBLISH_METATAGS_TITLE := Tag: <name>
override PUBLISH_METATAGS_TITLE_ALT := Mark: <name>
override PUBLISH_METATAGS_TITLE_MOD := null
override PUBLISH_METATAGS_DISPLAY := Tags: <|>, <|>
override PUBLISH_METATAGS_DISPLAY_ALT := <ul><li><|></li><li><|></li></ul>
override PUBLISH_METATAGS_DISPLAY_MOD := null
override PUBLISH_METATAGS_EMPTY := *(no $(PUBLISH_METATAGS))*
override PUBLISH_METATAGS_EMPTY_ALT := *(none)*
override PUBLISH_METATAGS_EMPTY_MOD := null
#>override PUBLISH_CONTENTS :=
#> talk: 183 / read: 234
override PUBLISH_READTIME_DISPLAY := *Reading time: <word> words, <time> minutes*
override PUBLISH_READTIME_DISPLAY_ALT := *Words: <word> / Minutes: <time>*
override PUBLISH_READTIME_DISPLAY_MOD := $(PUBLISH_READTIME_DISPLAY_ALT)
override PUBLISH_READTIME_WPM := 220
override PUBLISH_READTIME_WPM_ALT := 200
override PUBLISH_READTIME_WPM_MOD := $(PUBLISH_READTIME_WPM_ALT)
#WORKING:FIX:EXCLUDE
# eureka! handle this just like the filtering for "md" files...
# see $(TARGETS), output of COMPOSER_* variables...
override PUBLISH_REDIRECT_TITLE := Moved To: <link>
override PUBLISH_REDIRECT_TITLE_ALT := Redirecting: <link>
override PUBLISH_REDIRECT_TITLE_MOD := null
override PUBLISH_REDIRECT_DISPLAY := **This link has been permanently moved to: <link>**
override PUBLISH_REDIRECT_DISPLAY_ALT := **Redirecting: <link>**
override PUBLISH_REDIRECT_DISPLAY_MOD := null
override PUBLISH_REDIRECT_EXCLUDE := null
override PUBLISH_REDIRECT_EXCLUDE_ALT := $(PUBLISH_REDIRECT_EXCLUDE)
override PUBLISH_REDIRECT_EXCLUDE_MOD := *
override PUBLISH_REDIRECT_TIME := 5
override PUBLISH_REDIRECT_TIME_ALT := $(SPECIAL_VAL)
override PUBLISH_REDIRECT_TIME_MOD := null
########################################
### {{{3 Library
########################################
override LIBRARY_FOLDER := null
override LIBRARY_FOLDER_ALT := _library
override LIBRARY_FOLDER_MOD := $(LIBRARY_FOLDER_ALT)
override LIBRARY_AUTO_UPDATE := null
override LIBRARY_AUTO_UPDATE_ALT := 1
override LIBRARY_AUTO_UPDATE_MOD := $(LIBRARY_AUTO_UPDATE_ALT)
override LIBRARY_ANCHOR_LINKS := 1
override LIBRARY_ANCHOR_LINKS_ALT := $(LIBRARY_ANCHOR_LINKS)
override LIBRARY_ANCHOR_LINKS_MOD := null
override LIBRARY_APPEND := null
override LIBRARY_APPEND_ALT = $(PUBLISH_CMD_ROOT)/$(word 3,$(PUBLISH_DIRS))/$(PUBLISH_FILE_APPEND)
#> update: $(COMPOSER_DOITALL_$(PUBLISH)-$(EXAMPLE)),$(TESTING)
#>override LIBRARY_APPEND_MOD = [ $(LIBRARY_APPEND_ALT), $(LIBRARY_APPEND_ALT) ]
override LIBRARY_APPEND_MOD = [ $(PUBLISH_HEADER_ALT), $(LIBRARY_APPEND_ALT) ]
override LIBRARY_DIGEST_TITLE := Latest Updates
override LIBRARY_DIGEST_TITLE_ALT := Digest
override LIBRARY_DIGEST_TITLE_MOD := null
override LIBRARY_DIGEST_CONTINUE := *[$(EXPAND)]*
override LIBRARY_DIGEST_CONTINUE_ALT := *(continued)*<br>
override LIBRARY_DIGEST_CONTINUE_MOD := $(LIBRARY_DIGEST_CONTINUE_ALT)
override LIBRARY_DIGEST_PERMALINK := *(link to full page)*
#>override LIBRARY_DIGEST_PERMALINK_ALT := *(permalink)*
override LIBRARY_DIGEST_PERMALINK_ALT := null
override LIBRARY_DIGEST_PERMALINK_MOD := null
override LIBRARY_DIGEST_CHARS := 1024
override LIBRARY_DIGEST_CHARS_ALT := 2048
override LIBRARY_DIGEST_CHARS_MOD := 54321
override LIBRARY_DIGEST_COUNT := 10
override LIBRARY_DIGEST_COUNT_ALT := 20
override LIBRARY_DIGEST_COUNT_MOD := $(LIBRARY_DIGEST_COUNT_ALT)
override LIBRARY_DIGEST_EXPANDED := $(SPECIAL_VAL)
override LIBRARY_DIGEST_EXPANDED_ALT := null
override LIBRARY_DIGEST_EXPANDED_MOD := 2
override LIBRARY_DIGEST_SPACER := 1
override LIBRARY_DIGEST_SPACER_ALT := null
override LIBRARY_DIGEST_SPACER_MOD := $(LIBRARY_DIGEST_SPACER_ALT)
override LIBRARY_LISTS_EXPANDED := $(SPECIAL_VAL)
override LIBRARY_LISTS_EXPANDED_ALT := null
override LIBRARY_LISTS_EXPANDED_MOD := 2
override LIBRARY_LISTS_SPACER := 1
override LIBRARY_LISTS_SPACER_ALT := null
override LIBRARY_LISTS_SPACER_MOD := $(LIBRARY_LISTS_SPACER_ALT)
#WORKING:FIX:EXCLUDE
override LIBRARY_SITEMAP_TITLE := Site Map