summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-09-19 05:47:50 +0000
committerTim Potter <tpot@samba.org>2002-09-19 05:47:50 +0000
commit9583398baa3ef73b733215d22d2cfa746cacccb0 (patch)
tree3bc358c543124dc241254b58b3848d8655fd73d1 /source3
parent86c7c460ca6c099f3593a092581ee5364179e481 (diff)
downloadsamba-9583398baa3ef73b733215d22d2cfa746cacccb0.tar.gz
samba-9583398baa3ef73b733215d22d2cfa746cacccb0.tar.bz2
samba-9583398baa3ef73b733215d22d2cfa746cacccb0.zip
Clean up python extensions in clean target.
Pass more flags down to setup.py so we don't have to hard code any -I directives. (This used to be commit a36882175ae546859fa4a5ba02a22d711a04cedf)
Diffstat (limited to 'source3')
-rw-r--r--source3/Makefile.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index d7f8dc5f68..c819ef1114 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -883,7 +883,7 @@ python_common_proto:
$(PY_COMMON_PROTO_OBJ)
python_ext: $(PYTHON_OBJS)
- PYTHON_OBJS="$(PYTHON_OBJS)" PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS)" \
+ PYTHON_OBJS="$(PYTHON_OBJS)" PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
LIBS="$(LIBS)" \
$(PYTHON) python/setup.py build
@@ -892,6 +892,9 @@ python_install: $(PYTHON_OBJS)
LIBS="$(LIBS)" \
$(PYTHON) python/setup.py install
+python_clean:
+ @if test -n "$(PYTHON)"; then $(PYTHON) python/setup.py clean; fi
+
# revert to the previously installed version
revert:
@$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SPROGS)
@@ -927,9 +930,9 @@ uninstallscripts:
# Toplevel clean files
TOPFILES=dynconfig.o dynconfig.po
-clean: delheaders
+clean: delheaders python_clean
-rm -f core */*~ *~ */*.o */*.po */*.po32 */*.@SHLIBEXT@ \
- $(TOPFILES) $(PROGS) $(SPROGS) .headers.stamp
+ $(TOPFILES) $(PROGS) $(SPROGS) .headers.stamp
# Making this target will just make sure that the prototype files
# exist, not necessarily that they are up to date. Since they're