File: python.am

package info (click to toggle)
python-orbit 0.3.1-12
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,492 kB
  • ctags: 801
  • sloc: sh: 9,444; ansic: 5,642; python: 1,141; makefile: 126
file content (24 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
install-@DIR@PYTHON: $(@DIR@_PYTHON)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(@DIR@dir)
	@list='$(@DIR@_PYTHON)'; for p in $$list; do\
	  if test -f $(srcdir)/$$p; then \
## don't perform translation, since script name is important
	    echo "  $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)$(@DIR@dir)/$$p"; \
	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(@DIR@dir)/$$p; \
	  else :; fi; \
	done
## byte-compile must be done at install time, since file times are encoded
## in the actual files.
	@PYTHON=$(PYTHON) $(py_compile) --basedir $(DESTDIR)$(@DIR@dir) $(@DIR@_PYTHON)

uninstall-@DIR@PYTHON:
	@$(NORMAL_UNINSTALL)
	list='$(@DIR@_PYTHON)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(@DIR@dir)/$$p; \
## this is to remove the .pyc and .pyo byte compiled versions (a bit of a hack)
	  rm -f $(DESTDIR)$(@DIR@dir)/$${p}c; \
	  rm -f $(DESTDIR)$(@DIR@dir)/$${p}o; \
	done