3 # This file is part of chiark-utils, a collection of useful programs
4 # used on chiark.greenend.org.uk.
7 # Copyright 2001-2002 Ian Jackson <ian@chiark.greenend.org.uk>
9 # This is free software; you can redistribute it and/or modify it under the
10 # terms of the GNU General Public License as published by the Free Software
11 # Foundation; either version 2, or (at your option) any later version.
13 # This is distributed in the hope that it will be useful, but WITHOUT ANY
14 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18 # You should have received a copy of the GNU General Public License along
19 # with this program; if not, write to the Free Software Foundation, Inc.,
20 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 INSTALL_SHARE= $(INSTALL) -m 644 -o root -g $(SYSTEM_GROUP)
26 INSTALL_SCRIPT= $(INSTALL) -m 755 -o root -g $(SYSTEM_GROUP)
27 INSTALL_DIRECTORY= $(INSTALL) -m 2755 -o root -g $(SYSTEM_GROUP) -d
32 man5dir=${mandir}/man5
33 man8dir=${mandir}/man8
34 txtdocdir=$(prefix)/share/doc/sync-accounts
35 exampledir=$(txtdocdir)/examples
37 SCRIPTS= sync-accounts sync-accounts-createuser grab-account
38 MANPAGES5= sync-accounts
39 MANPAGES8= sync-accounts sync-accounts-createuser grab-account
45 $(INSTALL_DIRECTORY) $(bindir)
46 set -e; for f in $(SCRIPTS); do \
47 $(INSTALL_SCRIPT) $$f $(bindir)/$$f; done
50 $(INSTALL_DIRECTORY) $(man5dir) $(man8dir)
51 set -e; for f in $(MANPAGES5); do \
52 $(INSTALL_SHARE) $$f.5 $(man5dir)/$$f.5; done
53 set -e; for f in $(MANPAGES8); do \
54 $(INSTALL_SHARE) $$f.8 $(man8dir)/$$f.8; done
57 $(INSTALL_DIRECTORY) $(exampledir)
58 set -e; for e in $(EXAMPLES); do \
59 $(INSTALL_SHARE) sync-accounts.example-$$e \
60 $(exampledir)/sync-accounts.$$e; \
66 distclean realclean: clean