gno/doc/refs/gsh/Makefile
gdr-ftp 2fd48bf635 .cvsignore:
added 'gsh.sgml' since it's generated
Makefile:
	fixed up some dependencies
main.sgml:
	added top level id so that the created file is named "index.html"
1999-02-21 23:30:39 +00:00

38 lines
667 B
Makefile

CHAPTERS = \
start.sgml \
interact.sgml \
product.sgml \
commands.sgml \
vars.sgml \
prefix.sgml \
errors.sgml \
comply.sgml \
termcap.sgml \
glossary.sgml
all: h ps
h: gsh/index.html
ps: gsh.ltr.ps.Z
gsh.ltr.ps.Z: gsh.ltr.ps
compress < $< > $@
gsh/index.html: gsh.sgml $(CHAPTERS)
sgmltools -b html gsh.sgml
../posthtml gsh/*
gsh.ltr.ps: gsh.sgml $(CHAPTERS)
sgmltools -b ps gsh.sgml
mv gsh.ps gsh.ltr.ps
gsh.sgml: main.sgml $(CHAPTERS)
@date="`../getdate -date main.sgml $(CHAPTERS)`"; \
echo "generating $@"; \
perl -pe "s,%%%date%%%,$$date,g;" < main.sgml > $@
clean:
rm -f gsh.sgml *~
clobber: clean
rm -rf gsh gsh.ltr.ps gsh.ltr.ps.Z