Commit e4010853 authored by Raymond Toy's avatar Raymond Toy

Create and install tarballs for info and multipage html files

parent c03de016
......@@ -16,9 +16,12 @@ SRCS = aliens.texi \
unicode.texi \
unix.texi
# We're assuming this is GNU sed
# Assuming this is GNU tar
TAR ?= tar
# We're assuming this is GNU sed
SED ?= sed
# Need to create the pdf file this way so we can generate the index
# with entries for sub topics.
#
......@@ -31,7 +34,7 @@ SED ?= sed
#
cmu-user.pdf : ${SRCS}
pdftex cmu-user.texi
$(SED) -i=bak -E 's/^(.*)\{([^!]+)!([^}]+)\}[ ]*$$/\1{\2}{\3}/' cmu-user.cp
$(SED) -i bak -E 's/^(.*)\{([^!]+)!([^}]+)\}[ ]*$$/\1{\2}{\3}/' cmu-user.cp
texindex cmu-user.cp
pdftex cmu-user.texi
pdftex cmu-user.texi
......@@ -39,16 +42,22 @@ cmu-user.pdf : ${SRCS}
cmu-user.info : ${SRCS}
$(MAKEINFO) --info cmu-user.texi
cmu-user-info.tar.bz2 : cmu-user.info
$(TAR) cjf cmu-user-info.tar.bz2 cmu-user.info*
cmu-user.html : ${SRCS}
$(MAKEINFO) --no-split --html cmu-user.texi
cmu-user/index.html : cmu-user ${SRCS}
$(MAKEINFO) --html cmu-user.texi
cmu-user-html.tar.bz2 : cmu-user/index.html
$(TAR) cjf cmu-user-html.tar.bz2 cmu-user
cmu-user :
mkdir cmu-user
all : cmu-user.info cmu-user.pdf cmu-user.html cmu-user/index.html
all : cmu-user-info.tar.bz2 cmu-user.pdf cmu-user.html cmu-user/index.html cmu-user-html.tar.bz2
PUBUSER = ../../public/docs/cmu-user
......@@ -59,10 +68,11 @@ $(PUBUSER)/html :
mkdir -p $@
install : all $(PUBUSER) $(PUBUSER)/html
cp -r cmu-user.info* $(PUBUSER)
cp -r cmu-user/* $(PUBUSER)/html
cp cmu-user-info.tar.bz2 $(PUBUSER)
cp cmu-user.html $(PUBUSER)
cp cmu-user.pdf $(PUBUSER)
cp cmu-user.html $(PUBUSER)/html
cp -r cmu-user/* $(PUBUSER)/html
cp cmu-user-html.tar.bz2 $(PUBUSER)
clean :
$(RM) -rf cmu-user
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment