master - makefiles: standard usage of make.tmpl
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=75d79f3dad99106c2ecb68c67507f9c367893ec1 Commit: 75d79f3dad99106c2ecb68c67507f9c367893ec1 Parent: 4dc602f79bd6579eef15a9227aee99fe832a7610 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Nov 21 16:34:01 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat Nov 22 09:58:31 2014 +0100
makefiles: standard usage of make.tmpl
Use lvm2 standard TARGETS.
Make liblvm_python.c as intermediate target (gets deleted after use)
Properly delete build dir on make distclean.
Mark install_python_bindings as .PHONY.
--- python/Makefile.in | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-)
python/Makefile.in +10 -5
@@ -15,7 +15,9 @@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ -python_bindings: .liblvm_built +TARGETS = .liblvm_built + +include $(top_builddir)/make.tmpl .liblvm_built: liblvm_python.c $(PYTHON) setup.py build
@@ -24,18 +26,21 @@ python_bindings: .liblvm_built liblvm_python.c: $(LN_S) $(srcdir)/liblvm.c $@ -include $(top_builddir)/make.tmpl - -install_python_bindings: python_bindings +install_python_bindings: $(TARGETS) $(PYTHON) setup.py install --skip-build --prefix $(pyexecdir) install_lvm2: install_python_bindings install: install_lvm2 +.PHONY: install_python_bindings +.INTERMEDIATE: liblvm_python.c + clean: $(RM) -r build -CLEAN_TARGETS += .liblvm_built liblvm_python.c +distclean: clean + +CLEAN_TARGETS += liblvm_python.c DISTCLEAN_TARGETS += setup.py