aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-02-13 19:27:38 +0000
committerroot <root@turin.home>2022-02-13 19:27:38 +0000
commitd7512378823fae3f6adde450042a12932ffc2e44 (patch)
tree41ba6a927e1b483f1f0495c64b35aea926789d26 /Makefile
parent50e0c2cff46f0b9440b2a318cef764897c91ed84 (diff)
Discussing quantum computing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 3 insertions, 29 deletions
diff --git a/Makefile b/Makefile
index ca86885..ba4a4c8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,35 +1,9 @@
-default: pdf
-build:
- @ls -1 | grep target || mkdir target
- @wc paper.ms
- @cat paper.ms|\
- sed "s/^{/.[\n/g" |\
- sed "s/}{/\n.]\n.[\n/g" |\
- sed "s/{/\n.[\n/g" | sed "s/\}\ /\n.]\n/g" | sed "s/\}/\n.]\n/g" |\
- refer -C -Ss -p refer |\
- tr "^" " "> target/temp
- #sed -E "s|([^\"\'\>=])(http[s]?://[^[:space:]]*)|\1\n.pdfhref W -D \"\2\" -A -- \2\n|g" |\
- #sed -E "s|([^\"\'\>=])(http[s]?://[^[:space:]]*)|\1\n.pdfhref W \2\n|g"
-pdf: build
- @cat formatting.ms target/temp |\
- groff -Eket -Tpdf -ms -P-pa4 > target/paper.pdf
-html2: build
- cat header.html > target/paper.html
- cat formatting.ms target/temp| sed "s/.nr LL*/.nr LL 6i/g" |\
- groff -Tascii -c -ms |\
- sed "1,2d" | ansi2html -piml >> target/paper.html
- echo "</pre>" >> target/paper.html
-html: build
- @groff -E -Thtml -ms target/temp |\
- sed -E "s|([^\"\'\>=])(http[s]?://[^[:space:]]*)|\1<a href=\2>\2</a>|g" |\
- sed -E "s|^(http[s]?://[^[:space:]]*)|<a href=\1>\1</a>|g" |\
- sed "1,6d" > target/temp2
- @cat header.html target/temp2 |\
- sed -E '34 i <a href="./paper.pdf">See this as a pdf</a><br>'> target/paper.html
+default:
+ ./make
read:
zathura target/paper.pdf&
clean:
rm -rf target
- install: pdf html
+install: default
cp target/paper.html /var/www/git-bin/epq
cp target/paper.pdf /var/www/git-bin/epq