slweb

Једноставни генератор статичких веб страна
git clone https://git.sr.ht/~strahinja/slweb
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 057f7edc721322c4bb2e13020f0ea52643d25b8a
родитељ c0ced2020339e482e392ac0d5f19daf4825fd778
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Fri, 15 Mar 2024 21:09:44 +0100

Makefile: Add .POSIX; config.mk: Split CFLAGS -> CFLAGS+CPPFLAGS; -g -> -Os;
comment out CC by default; INSTALL: Revise OpenBSD section, remove gzip
optional requirement; .gitignore: Add *.sig

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
M.gitignore | 1+
MINSTALL | 12+++++-------
MMakefile | 2+-
Mconfig.mk | 7++++---
Mexamples/Makefile | 2+-
измењених датотека: 5, додавања: 12(+), брисања: 12(-)

diff --git a/.gitignore b/.gitignore @@ -16,6 +16,7 @@ cscope.out nohup.out *.gz +*.sig *.xz index.html slweb diff --git a/INSTALL b/INSTALL @@ -10,7 +10,6 @@ Optional dependencies * KaTeX[1] for math mode * git (for {git-log}) * identify from ImageMagick[2] (for <img width="" height="">) -* gzip (autodetected, for manpage compression) [1]: https://katex.org [2]: https://imagemagick.org @@ -36,15 +35,14 @@ are specified in config.mk. OpenBSD ------- -Before running make(1), comment the CFLAGS definition in config.mk above the +Before running make(1), comment the CPPFLAGS definition in config.mk above the line with the "OpenBSD" comment and uncomment the one below it: - #CFLAGS = -g -Wall -pedantic -std=c99 \ - -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 + #CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ + # -D_XOPEN_SOURCE=700 # OpenBSD - CFLAGS = -g -Wall -pedantic -std=c99 \ - -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 \ - -D_BSD_SOURCE + CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ + -D_XOPEN_SOURCE=700 -D_BSD_SOURCE Also, do the same for MANPREFIX: diff --git a/Makefile b/Makefile @@ -68,4 +68,4 @@ test: all pack: all version sh -x lib/mkpack -.PHONY: clean examples install makedate makeversion pack test uninstall +.PHONY: all clean examples install makedate makeversion pack test uninstall diff --git a/config.mk b/config.mk @@ -1,8 +1,9 @@ -CC = cc -CFLAGS = -g -Wall -pedantic -std=c99 -D_POSIX_C_SOURCE=200809L \ +#CC = cc +CFLAGS = -Os -Wall -pedantic -std=c99 +CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ -D_XOPEN_SOURCE=700 # OpenBSD -#CFLAGS = -g -Wall -pedantic -std=c99 -D_POSIX_C_SOURCE=200809L \ +#CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ # -D_XOPEN_SOURCE=700 -D_BSD_SOURCE HTMLS = basic/index.html blockquote/index.html breakmarks/index.html \ csv-tsv/index-csv.html csv-tsv/index.html \ diff --git a/examples/Makefile b/examples/Makefile @@ -24,4 +24,4 @@ uninstall: find $(EXDIR) -type f -exec rm {} \; || true find $(EXDIR) -depth -type d -exec rmdir {} \; || true -.PHONY: clean install uninstall +.PHONY: all clean install uninstall