# Makefile # This file is part of chiark-utils, a collection of useful programs # used on chiark.greenend.org.uk. # # This file is: # Copyright (C) 2001 Ian Jackson # # This is free software; you 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, or (at your option) any later version. # # This is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. INSTALL= install -c INSTALL_SHARE= $(INSTALL) -m 644 -o root -g root INSTALL_SCRIPT= $(INSTALL) -m 755 -o root -g root INSTALL_DIRECTORY= $(INSTALL) -m 2755 -o root -g root -d prefix=/usr/local bindir=$(prefix)/bin mandir=${prefix}/man man8dir=${mandir}/man8 SCRIPTS= named-conf MANPAGES8= named-conf all: install: $(INSTALL_DIRECTORY) $(bindir) set -e; for f in $(SCRIPTS); do \ $(INSTALL_SCRIPT) $$f $(bindir)/chiark-$$f; done install-docs: $(INSTALL_DIRECTORY) $(man8dir) set -e; for f in $(MANPAGES8); do \ $(INSTALL_SCRIPT) $$f.8 $(man8dir)/chiark-$$f.8; done install-examples: clean: rm -f *~ ./#*# distclean realclean: clean