#
# Makefile for cthugha-L
# documentation directory
#
# You should not need to change anything in this file.
# Set your preferences in the file configure.
#

include ../configure

all: doc

#
# Documentation
#
doc: cthugha.info cthugha.ps ../INSTALL


#
# Create postscript version of documentation.
#
cthugha.info: cthugha.texi ../configure
	${MAKEINFO} ${MAKEINFO_FLAGS} cthugha.texi

cthugha.dvi: cthugha.texi ../configure
	${TEXI2DVI} ${TEXI2DVI_FLAGS} cthugha.texi

cthugha.ps: cthugha.dvi ../configure
	${DVIPS} cthugha.dvi

../INSTALL: cthugha.texi ../configure
	$(MAKEINFO) $(MAKEINFO_FLAGS) --no-headers cthugha.texi -o - \
	  | sed -n '/^Installation/,/^Technical Stuff/'p \
	  | sed '$$d' > ../INSTALL



# clean up
clean:
	rm -f cthugha.aux cthugha.cp cthugha.dvi cthugha.fn cthugha.info     \
	      cthugha.ky cthugha.log cthugha.pg cthugha.ps cthugha.toc       \
              cthugha.tp cthugha.vr *~ *.bak

# only remove junk
dejunk:
	rm -f cthugha.aux cthugha.cp cthugha.fn cthugha.ky cthugha.log \
	      cthugha.pg cthugha.toc cthugha.tp cthugha.vr 

# installation
install: 
	${INSTALL} -m 0644 cthugha.1	$(INST_MAN)
	${INSTALL} -m 0644 cthugha.info	$(INST_INFO)
	echo ""	        >> ${INST_INFO}/dir
	echo "Cthugha:" >> ${INST_INFO}/dir
	echo "========" >> ${INST_INFO}/dir
	echo "* cthugha: (cthugha).   An Oscilloscope on Acid"	>> ${INST_INFO}/dir

.PHONY:



