chiark / gitweb /
Bump version to 7.0.1~iwj0
[chiark-utils.git] / scripts / Makefile
1 # Makefile
2
3 # This file is part of chiark-utils, a collection of useful programs
4 # used on chiark.greenend.org.uk.
5 #
6 # This file is:
7 #  Copyright (C) 2001 Ian Jackson <ian@chiark.greenend.org.uk>
8 #
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 3, or (at your option) any later version.
12 #
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
16 # details.
17 #
18 # You should have received a copy of the GNU General Public License along
19 # with this program; if not, consult the Free Software Foundation's
20 # website at www.fsf.org, or the GNU Project website at www.gnu.org.
21
22 include ../settings.make
23
24 SCRIPTS=        palm-datebook-reminders random-word expire-iso8601 \
25                 genspic2gnuplot gnucap2genspic ngspice2genspic \
26                 cvs-repomove cvs-adjustroot remountresizereiserfs \
27                 hexterm summarise-mailbox-preserving-privacy \
28                 git-cache-proxy git-branchmove nntpid
29
30 MANPAGES1=      palm-datebook-reminders git-branchmove
31
32 CSCRIPTS=       named-conf
33 CMANPAGES8=     named-conf
34
35 PERLMODULES=    Chiark/NNTP Proc/Prefork/Interp
36
37 all:
38
39 install:
40                 $(INSTALL_DIRECTORY) $(bindir)
41                 set -e; for f in $(SCRIPTS); do \
42                         $(INSTALL_SCRIPT) $$f $(bindir)/$$f; done
43                 set -e; for f in $(CSCRIPTS); do \
44                         $(INSTALL_SCRIPT) $$f $(bindir)/chiark-$$f; done
45                 set -e; for f in $(PERLMODULES); do \
46                         $(INSTALL_DIRECTORY) ${perl5dir}/$${f%/*}; \
47                         $(INSTALL_SHARE) $$f.pm $(perl5dir)/$$f.pm; done
48
49
50 install-docs: $(addsuffix .1,$(MANPAGES1))
51                 $(INSTALL_DIRECTORY) $(man1dir) $(man8dir)
52                 set -e; for f in $(MANPAGES1); do \
53                         $(INSTALL_SHARE) $$f.1 $(man1dir)/$$f.1; done
54                 set -e; for f in $(CMANPAGES8); do \
55                         $(INSTALL_SHARE) $$f.8 $(man8dir)/chiark-$$f.8; done
56
57 git-branchmove.1: git-branchmove
58         pod2man git-branchmove >git-branchmove.1
59
60 install-examples:
61
62 clean:
63                 rm -f *~ ./#*#
64                 rm -f git-branchmove.1
65
66 distclean realclean:    clean