New Makefile structure

svn: r881
This commit is contained in:
Donald A. Peterson
2002-03-30 03:49:19 +00:00
parent 836dbde7da
commit 2444f75983
6 changed files with 110 additions and 58 deletions

View File

@@ -1,3 +1,5 @@
include @top_srcdir@/Makefile.comm
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
@@ -7,10 +9,13 @@ plugins = ${datadir}/plugins
srcdir = @top_srcdir@
pycomp = ${srcdir}/py-compile
@SET_MAKE@
# Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all .py files individually
PYSRCS := ${wildcard *.py}
all:
${pycomp} *.py
PYOBJS = ${PYSRCS:.py=.pyo}
all: ${PYOBJS}
install:
${INSTALL} -d ${plugins}
@@ -22,3 +27,10 @@ uninstall:
clean:
-rm -f core *.pyo *.pyc *.bak *~
# Add PYTHON suffix rules to make's vocabulary
.SUFFIXES: .py .pyo
# How do we properly compile a python module?
.py.pyo:
${pycomp} $<