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)
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
18 install-@DIR@PYTHON: $(@DIR@_PYTHON)
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; \
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:
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
38 rm -f $(DESTDIR)$(@DIR@dir)/$${p}c; \
39 rm -f $(DESTDIR)$(@DIR@dir)/$${p}o; \