#!/usr/bin/make -f

# This file is part of the Debian `xypic' package version 3.0-1.
# Copyright (c) 1995  Erick Branderhorst. This is free software; you can
# can redistribute it and/or modify it under the terms of the GNU General
# Public License as published by the Free Software Foundation; either 
# version 2 of the License, or (at your option) any later version.

DOC	= $(prefix)/doc
INST_DIR= install -g root -o root -d -m 755
INST_DAT= install -g root -o root -m 644

%.gz: %
	gzip --best $<

all: knotnotes.tex.gz knotnotes.ps.gz FRS-exam.tex.gz FRS-exam.ps.gz

install: all
	$(INST_DIR)			$(DOC)
	$(INST_DIR)			$(DOC)/examples
	$(INST_DIR)			$(DOC)/examples/xypic

	$(INST_DAT) *.gz 		$(DOC)/examples/xypic
