File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# Available targets:
33#
44# all -- (default) build pdfgui manual in HTML and PDF formats
5- # publish -- upload the latest manual to www.diffpy.org
65# clean -- remove intermediate texinfo files
76# cleanALL -- delete all generated files
7+ # publish -- copy the compiled manual files to WEBDIR directory
88#
99# Variables:
1010#
1111# EQBUILD -- extract PNG equations for HTML manual
12+ # WEBDIR -- the rsync target directory. Required by "publish" target.
1213
1314
1415all : pdfgui.pdf pdfgui.html
@@ -33,9 +34,16 @@ clean:
3334 pdfgui.vr pdfgui.tp pdfgui.pg pdfgui.ky pdfgui.fn \
3435 pdfgui.cps pdfgui.cp pdfgui.toc pdfgui.aux pdfgui.log \
3536 pdfgui.vrs
36- /bin/rm -f -- images/eq-* .png
3737
3838
3939cleanALL : clean
4040 /bin/rm -f pdfgui.html pdfgui.pdf
4141 $(MAKE ) -C images clean
42+
43+
44+ publish : all
45+ ifndef WEBDIR
46+ $(error Set WEBDIR to define rsync target directory.)
47+ endif
48+ rsync -pRt --chmod=a+rwx,go-w,Fa-x \
49+ pdfgui.html pdfgui.pdf images/*.png $(WEBDIR)
You can’t perform that action at this time.
0 commit comments