INSTALL (1272B)
1 Prerequisites 2 ============= 3 4 * C compiler - defaults in config.mk 5 6 7 Optional dependencies 8 --------------------- 9 10 * KaTeX[1] for math mode 11 * git (for {git-log}) 12 * identify from ImageMagick[2] (for <img width="" height="">) 13 14 [1]: https://katex.org 15 [2]: https://imagemagick.org 16 17 18 Install 19 ------- 20 21 $ git clone https://git.sr.ht/~strahinja/slweb 22 $ cd slweb 23 $ su 24 # make install 25 26 With got[1]: 27 28 $ got clone https://git.sr.ht/~strahinja/slweb 29 $ got checkout slweb.git 30 $ cd slweb 31 $ su 32 # make install 33 34 [1]: https://gameoftrees.org 35 36 37 Persistent build configuration file 38 ----------------------------------- 39 40 The file config.mk will be included by make when building targets which also 41 accept configuration through environment variables. For example, CC and PREFIX 42 are specified in config.mk. 43 44 45 OpenBSD 46 ------- 47 48 Before running make(1), comment the CPPFLAGS definition in config.mk above the 49 line with the "OpenBSD" comment and uncomment the one below it: 50 51 #CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ 52 # -D_XOPEN_SOURCE=700 53 # OpenBSD 54 CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ 55 -D_XOPEN_SOURCE=700 -D_BSD_SOURCE 56 57 Also, do the same for MANPREFIX: 58 59 #MANPREFIX = $(DESTDIR)$(PREFIX)/share/man 60 # OpenBSD 61 MANPREFIX = $(DESTDIR)$(PREFIX)/man