Skip to content

Commit eafe898

Browse files
committed
Add back the publish target to manual Makefile.
`make publish` requires setting of WEBDIR variable to specify where to copy the manual. This partially reverts f1b27b3.
1 parent e8a52bf commit eafe898

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

doc/manual/Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
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

1415
all: 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

3939
cleanALL: 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)

0 commit comments

Comments
 (0)