new file: makefile
[GalaxyCodeBases.git] / python / markdowngfm / Makefile
blob64f2227bec5a84abd226c4bd6af0751a531bbe92
1 install:
2 pip3 install -v --editable .
3 @echo \\n[!]Run with: mdgfm\\n
5 clean:
6 pip3 uninstall -v -y markdowngfm
7 rm -fr src/*.egg-info
8 rm -fr build
10 test:
11 mdgfm -o ./out/
13 pkg:
14 -rm dist/*
15 #python3 setup.py sdist --formats=zip
16 python3 setup.py bdist_wheel
17 @ls -l dist/*
19 p0FILE := "src/markdowngfm/htm/head.htm"
20 .PHONY etc:
21 sed 's/.markdown-body //g' github-markdown.css >github-markdownA.css
22 css-html-js-minify github-markdownA.css
23 echo "<!DOCTYPE html><html><head><style>" >$(p0FILE)
24 cat github-markdownA.min.css >>$(p0FILE)
25 echo "</style></head><body>" >>$(p0FILE)
26 #echo "<h4>如果封面难以用 GitHub Flavored Markdown 表示,可以在此文件中以HTML与CSS的形式编写封面。</h4>" >>$(p0FILE)