* automake.texi (Texinfo): Mention vers*.texi.
[automake.git] / python.am
blob0f47e18a6c0dcf769035288f0ecaf2b1bd405da5
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1999 Free Software Foundation, Inc.
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 ## 02111-1307, USA.
18 install-@DIR@PYTHON: $(@DIR@_PYTHON)
19         @$(NORMAL_INSTALL)
20         $(mkinstalldirs) $(DESTDIR)$(@DIR@dir)
21         @list='$(@DIR@_PYTHON)'; for p in $$list; do\
22           if test -f $(srcdir)/$$p; then \
23 ## Don't perform translation, since script name is important.
24             echo " $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)$(@DIR@dir)/$$p"; \
25             $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(@DIR@dir)/$$p; \
26           else :; fi; \
27         done
28 ## Byte-compile must be done at install time, since file times are
29 ## encoded in the actual files.
30         @PYTHON=$(PYTHON) $(py_compile) --basedir $(DESTDIR)$(@DIR@dir) $(@DIR@_PYTHON)
32 uninstall-@DIR@PYTHON:
33         @$(NORMAL_UNINSTALL)
34         list='$(@DIR@_PYTHON)'; for p in $$list; do \
35           rm -f $(DESTDIR)$(@DIR@dir)/$$p; \
36 ## This is to remove the .pyc and .pyo byte compiled versions (a bit
37 ## of a hack).
38           rm -f $(DESTDIR)$(@DIR@dir)/$${p}c; \
39           rm -f $(DESTDIR)$(@DIR@dir)/$${p}o; \
40         done