New Makefile structure
svn: r881
This commit is contained in:
@@ -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} $<
|
||||
|
||||
Reference in New Issue
Block a user