Commits

Taylor Venable  committed b9394ed

Add install target

  • Participants
  • Parent commits 921c91d

Comments (0)

Files changed (1)

+PREFIX=$(HOME)
+TEXMF=$(PREFIX)/texmf
+
 ORG_FILES=$(wildcard *.org)
 HTML_FILES=$(patsubst %.org,%.html,$(ORG_FILES))
 
 	chmod +x tensile
 
 tensile.tex:	tensile.tnsl
-	tensile -indented-refs tensile.tnsl
+	tensile -indented-refs -weave-to tensile.tex tensile.tnsl
 
 tensile.sty:	tensile.dtx
 	xelatex tensile.dtx
 	bash -c "rm -f tensile.{aux,glo,hd,idx,ins,log,out,pdf,sty,tex,toc}"
 	bash -c "rm -f doc.{aux,idx,log,out,pdf,toc}"
 
+install:	tensile tensile.sty
+	mkdir -p $(PREFIX)/bin
+	mkdir -p $(TEXMF)/tex/latex
+	cp tensile $(PREFIX)/bin
+	cp tensile.sty $(TEXMF)/tex/latex
+
 %.html:	%.org org-style.css org-compile.el
 	emacs -q --batch -l org-compile.el --find-file $< --eval "(setq org-export-headline-levels `grep '^#+OPTIONS:' $< | sed -e 's/.*H:\([0-9]\)/\1/'`)" --eval "(org-export-as-html-batch)"