[Zope-Checkins] CVS: Zope/inst - Makefile.in:1.1.2.3

Chris McDonough chrism@zope.com
Sun, 29 Sep 2002 17:48:24 -0400


Update of /cvs-repository/Zope/inst
In directory cvs.zope.org:/tmp/cvs-serv14316/inst

Added Files:
      Tag: chrism-install-branch
	Makefile.in 
Log Message:
Move some files around that were committed into the wrong locations.


=== Zope/inst/Makefile.in 1.1.2.2 => 1.1.2.3 ===
--- /dev/null	Sun Sep 29 17:48:24 2002
+++ Zope/inst/Makefile.in	Sun Sep 29 17:48:24 2002
@@ -0,0 +1,84 @@
+# Zope2 build and install Makefile.
+
+# We do as much as possible in Python in order to avoid needing to
+# learn autoconf or some other awful thing. ;-)
+
+PYTHON=<<PYTHON>>
+TARGET_DIR=<<TARGET_DIR>>
+BUILD_DIR=<<BUILD_DIR>>
+OPT_FLAGS=<<OPT_FLAGS>>
+INST_DIR=${BUILD_DIR}/inst
+SKEL_DIR=${INST_DIR}/skel
+INFILE_DIR=${INST_DIR}/in
+
+RM=rm -f
+FIND=find
+XARGS=xargs
+CD=cd
+LN=ln -sf
+TOUCH=touch
+INSTALL_COPY="${PYTHON}" "${INST_DIR}/install.py" --copylinks
+WRITE_INFILE="${PYTHON}" "${INST_DIR}/file_from_infile.py"
+
+.PHONY : clean install uninstall instance links hacklinks
+
+build: hacklinks links
+	"${PYTHON}" "${INST_DIR}/setup.py" build_ext -i
+	${TOUCH} "${BUILD_DIR}/build"
+	@echo
+	@echo Zope built.  Next, do \'make install\' \(or \'make instance\'
+	@echo to run a Zope instance directly from the build directory\).
+	@echo
+
+# hack links which should go away once we can rearrange the CVS
+# repository without effecting our ability to obtain updates from
+# the trunk.
+hacklinks:
+	${CD} "${SKEL_DIR}" && \
+          ${LN} ../../pcgi . && \
+          ${LN} ../../doc . && \
+          ${LN} ../../Extensions . && \
+          ${LN} ../../import . && \
+          ${LN} ../../utilities . && \
+          ${LN} ../../var . && \
+          ${LN} ../../bin .
+	${CD} "${SKEL_DIR}/inst/skel" && \
+          ${LN} ../../../../var .
+
+# links to reduce code duplication since both the zope_home installer
+# and the instance_home installer need make_instance, file_from_infile,
+# and install
+links:
+	${CD} "${SKEL_DIR}/inst" && \
+           ${LN} ../../file_from_infile.py . && \
+           ${LN} ../../install.py .
+
+install: build
+	${INSTALL_COPY} "${SKEL_DIR}" "${TARGET_DIR}"
+	${WRITE_INFILE} "${INFILE_DIR}/make_instance.py.in" \
+           "${TARGET_DIR}/inst/make_instance.py"
+	"${PYTHON}" inst/setup.py install --home="${TARGET_DIR}" ${OPT_FLAGS}
+	@echo
+	@echo Zope binaries installed successfully.
+	@echo Now run \'${TARGET_DIR}/inst/make_instance.py\'
+
+instance: build
+	"${PYTHON}" "${SKEL_DIR}/inst/make_instance.py" \
+          --zopehome="${BUILD_DIR}"
+
+uninstall:
+	${RM} "${TARGET_DIR}"
+
+clean:
+	${FIND} "${BUILD_DIR}" -name '*.o' -o -name '*.so' -o -name \
+          '*.py[co]' -o -name 'core*' | ${XARGS} rm -f
+	${RM} "${BUILD_DIR}/build"
+	${RM} "${SKEL_DIR}/pcgi"
+	${RM} "${SKEL_DIR}/doc"
+	${RM} "${SKEL_DIR}/Extensions"
+	${RM} "${SKEL_DIR}/import"
+	${RM} "${SKEL_DIR}/utilities"
+	${RM} "${SKEL_DIR}/bin"
+	${RM} "${SKEL_DIR}/inst/skel/var"
+	${RM} "${SKEL_DIR}/inst/file_from_infile.py"
+	${RM} "${SKEL_DIR}/inst/install.py"