-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 765 Bytes
/
Makefile
File metadata and controls
32 lines (26 loc) · 765 Bytes
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
# https://github.com/FarManagerLegacy/HelpDown-scripts
# required user setting
BASE:=D:\repo\HelpDown-scripts
#PANDOC:=C:\Apps\pandoc\pandoc.exe
HTMLTOFARHELP:="$(FARPROFILE)\tools\HtmlToFarHelp\HtmlToFarHelp.exe"
# plug base Makefile
include $(BASE)/Makefile
.DEFAULT_GOAL:=hlf
# optional local customization
%.hlfhtml: FLAGS+=--lua-filter addRefs.lua
%: FLAGS+= --toc --lua-filter SetextH3.lua
README.md: LuaShell.ru.md
@echo $@
@if exist $@ del $@
@ren $< $@
.PHONY: all post
all: hlf forum README.md
@move *.hlf ../.LuaShell >nul
post: LuaShell.ru.forum
@env \
PASSWORD=$(shell KeePassCommand.cmd getfieldraw forum.farmanager.com Password) \
USERNAME="John Doe" \
POST_ID=145804 \
FILE="$<" \
CLEANUP=false \
$(BASE)/update_post.sh