aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2015-02-17 16:35:40 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2015-02-17 16:35:40 -0600
commitd466977da7da38cfd51c1a53eabf4956438088af (patch)
treef48e8637e120161d413c4daf93da05f9b8b52ceb /Makefile.in
parent6fc6ba99f3d37d601b64a9f5a0c5f69761571479 (diff)
downloadmediagoblin-d466977da7da38cfd51c1a53eabf4956438088af.tar.lz
mediagoblin-d466977da7da38cfd51c1a53eabf4956438088af.tar.xz
mediagoblin-d466977da7da38cfd51c1a53eabf4956438088af.zip
Proper cleanup of extlib with a make distclean
Also be sure to build the actual virtualenv target with a "make" if that's how we're set up. This commit sponsored by Pablo J. Urbano Santos. Thank you!
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 90bf31c8..580ebfc5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -46,6 +46,8 @@ pkgincludedir = $(includedir)/@PACKAGE_NAME@
PYTHONPATH = $(pythondir)$(PATH_SEPARATOR)$(DESTDIR)$(pythondir)
USE_PYTHON3 = @USE_PYTHON3@
+EXTLIB_INSTALLS = extlib/jquery extlib/video.js extlib/leaflet extlib/tinymce
+
# pkgpythondir = @pkgpythondir@
# pkgpyexecdir = @pkgpyexecdir@
# pythondir = @pythondir@
@@ -63,7 +65,7 @@ ifneq ($(VIRTUALENV),no)
maybe_venved = ./bin/
maybe_venved_python = ./bin/python
# Yes, build the virtualenv as a dependency!
-maybe_venv_dep = ./bin/python
+maybe_venv_dep = virtualenv
# And to clean up!
maybe_venv_clean = clean-virtualenv
@@ -86,8 +88,8 @@ installdirs i18n virtualenv docs extlib
all: develop
-ifneq ($(VIRTUALENV),no)
docs:
+ifneq ($(VIRTUALENV),no)
source bin/activate && cd docs && make html
else
cd docs && make html
@@ -152,6 +154,9 @@ clean:
# $(maybe_venved_python) setup.py clean
+# It's not obvious to me whether the virtualenv/bower/npm things should be
+# auto-cleaned as part of distclean. I'm leaning towards "yes" for now but
+# I'm not really happy about that.
# Clean up the output of configure
distclean: $(maybe_venv_clean)
@@ -159,6 +164,8 @@ distclean: $(maybe_venv_clean)
rm -vf $(srcdir)/config.status
rm -rvf $(srcdir)/autom4te.cache
rm -vf $(srcdir)/aclocal.m4
+ rm -rf $(EXTLIB_INSTALLS)
+ rm -rf node_modules
rm -vf $(srcdir)/Makefile