Annotation of python/pyvtk/Makefile, revision 1.1

1.1     ! pearu       1: # Makefile for installing Python package under Python 1.x.
        !             2: # Use GNU make for making.
        !             3: # $Revision: 1.32 $
        !             4: # $Date: 2000/09/17 16:10:24 $
        !             5: # Pearu Peterson <pearu@ioc.ee>
        !             6: 
        !             7: PYTHON = python
        !             8: PREFIX=$(shell $(PYTHON) -c "import sys;print sys.prefix")
        !             9: VERSION=$(shell $(PYTHON) -c "import sys;print sys.version[:3]")
        !            10: 
        !            11: PACKAGE = pyvtk
        !            12: LIBDIR=$(shell $(PYTHON) -c "import sys;print{'1':'lib152','2':'lib'}[sys.version[0]]")
        !            13: 
        !            14: INSTALLDIRECTORY = $(PREFIX)/lib/python$(VERSION)/site-packages/$(PACKAGE)
        !            15: INSTALLDIR = install -d
        !            16: INSTALLEXEC = install -m 755
        !            17: INSTALLDATA = install -m 644
        !            18: 
        !            19: .PHONY: install
        !            20: all:
        !            21:        @echo "Use 'make install' to install $(PACKAGE) (in $(LIBDIR)) to" $(INSTALLDIRECTORY)
        !            22: install:
        !            23:        rm -f $(INSTALLDIRECTORY)/*.pyc $(INSTALLDIRECTORY)/*.pyo
        !            24:        $(INSTALLDIR) $(INSTALLDIRECTORY)
        !            25:        $(INSTALLDATA) $(LIBDIR)/*.py $(INSTALLDIRECTORY)
        !            26:        cd $(INSTALLDIRECTORY) && echo "$(PACKAGE)" > ../$(PACKAGE).pth
        !            27:        @echo "***********"
        !            28:        @echo "$(PACKAGE) is installed succesfully to" $(INSTALLDIRECTORY)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>