bindir = @bindir@ datadir = @datadir@ datarootdir = @datarootdir@ exec_prefix = @exec_prefix@ includedir = @includedir@ libdir = @libdir@ mandir = @mandir@ prefix = @prefix@ srcdir = @srcdir@ srcdir2 := $(shell cd $(srcdir); pwd) INSTALL = @INSTALL@ MKDIR_P = @MKDIR_P@ LN_S = @LN_S@ INSTALL_PROGRAM = ${INSTALL} -m 755 INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL} -m 644 RM = rm -f VPATH = $(srcdir) PYTHON = @PYTHON@ PYTHON_INCDIR = @PYTHON_INCDIR@ PYTHON_VERSION = @PYTHON_VERSION@ python_flags = --library-dirs=$(libdir):../../src/core \ --include-dirs=$(srcdir)/../../src/core:$(PYTHON_INCDIR) pythonlib = $(libdir)/python$(PYTHON_VERSION)/site-packages envfile = python.env ARCHFLAGS = export ARCHFLAGS .PHONY: all install clean distclean # # Python distutils doesn't handle VPATH correctly. So copy the sources # into a temporary directory. # all: build/tmp $(PYTHON) setup.py build_ext $(python_flags) build build/tmp: $(MKDIR_P) -m 0755 build/tmp $(LN_S) $(srcdir2)/Rappture/*.cc build/tmp install: all $(MKDIR_P) -m 0755 $(pythonlib) $(PYTHON) setup.py install --install-lib=$(pythonlib) clean: $(PYTHON) setup.py clean $(RM) -rf build distclean: clean $(RM) Makefile setup.py *~