chiark / gitweb /
fishdescriptor: build system (nugatory)
[chiark-utils.git] / fishdescriptor / 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) 2017 Ian Jackson <ian.jackson@eu.citrix.com>
8 #  Copyright (C) 2001 Ian Jackson <ijackson@chiark.greenend.org.uk>
9 #
10 # This is free software; you can redistribute it and/or modify it under the
11 # terms of the GNU General Public License as published by the Free Software
12 # Foundation; either version 3, or (at your option) any later version.
13 #
14 # This is distributed in the hope that it will be useful, but WITHOUT ANY
15 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17 # details.
18 #
19 # You should have received a copy of the GNU General Public License along
20 # with this program; if not, consult the Free Software Foundation's
21 # website at www.fsf.org, or the GNU Project website at www.gnu.org.
22
23 include ../settings.make
24
25 SCRIPTS=        fishdescriptor
26 MODULES_23=     __init__ indonor
27 MODULES_3=      fish
28
29 py=py/fishdescriptor
30 d2=$(python2dir)/fishdescriptor
31 d3=$(python3dir)/fishdescriptor
32
33 all:
34
35 install:
36                 $(INSTALL_DIRECTORY) $(bindir) $(d2) $(d3)
37                 set -e; for f in $(SCRIPTS); do \
38                         $(INSTALL_SCRIPT) $$f $(bindir)/$$f; done
39                 set -e; for f in $(MODULES_3); do \
40                         $(INSTALL_SHARE) $(py)/$$f.py $(d3)/.; done
41                 set -e; for f in $(MODULES_23); do \
42                         $(INSTALL_SHARE) $(py)/$$f.py $(d3)/.; \
43                         ln $(d3)/$$f.py $(d2)/.; done
44
45 install-docs:
46
47 install-examples:
48
49 clean:
50                 rm -f *~ ./#*#
51                 find -name \*.pyc -print0 | xargs -0r rm --
52
53 distclean realclean:    clean