3 # This file is part of chiark-utils, a collection of useful programs
4 # used on chiark.greenend.org.uk.
7 # Copyright (C) 2017 Ian Jackson <ian.jackson@eu.citrix.com>
8 # Copyright (C) 2001 Ian Jackson <ijackson@chiark.greenend.org.uk>
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.
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
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.
23 include ../settings.make
25 SCRIPTS= fishdescriptor
26 MODULES_23= __init__ indonor
30 d2=$(python2dir)/fishdescriptor
31 d3=$(python3dir)/fishdescriptor
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
51 find -name \*.pyc -print0 | xargs -0r rm --
53 distclean realclean: clean