/[gentoo-src]/portage/pym/Makefile.in
Gentoo

Contents of /portage/pym/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Nov 20 15:16:54 2004 UTC (9 years, 11 months ago) by ferringb
Branch: MAIN
CVS Tags: portage_041204, HEAD
Branch point for: portage_2_1
Changes since 1.2: +6 -5 lines
File MIME type: text/plain
logic tweak to install just .pyc's.

1 INSTALL = @INSTALL@
2 INSTALL_PY = @INSTALL_DATA@ -D -g portage -o 0
3 PORTAGE_PYM = @PORTAGE_BASE@/pym
4 DESTDIR = @DESTDIR@
5 INSTALL_PYTHON_SOURCES = @INSTALL_PYTHON_SOURCES@
6
7 compile:
8 python -c 'import compileall; compileall.compile_dir(".")' || exit 1
9 clean:
10 find . -type f -name '*.pyc' -exec rm {} \;
11
12 install: compile
13 $(INSTALL) -d -m755 -o 0 -g portage $(DESTDIR)/$(PORTAGE_PYM) || exit 1
14 if test -n "$(INSTALL_PYTHON_SOURCES)"; then \
15 find . -type f -name '*.py' -exec $(INSTALL_PY) {} $(DESTDIR)/$(PORTAGE_PYM)/{} \; || exit 1; \
16 fi
17 find . -type f -name '*.pyc' -exec $(INSTALL_PY) {} $(DESTDIR)/$(PORTAGE_PYM)/{} \; || exit 1
18
19 all: compile
20
21 distdir:
22 find -type f -name '*.py' -exec $(INSTALL) -D {} $(distdir)/{} \;
23
24 .PHONY: distdir install clean

  ViewVC Help
Powered by ViewVC 1.1.20