+# In the future we may provide more options than just npm/bower here
+# eg, we may support guix updating.
+extlib:
+ ./devtools/update_extlib.sh
+
+develop: $(maybe_venv_dep) i18n mediagoblin.ini
+
+# NEVER clobber a user's mediagoblin.ini once they've defined it
+mediagoblin.ini:
+ cp -n mediagoblin.example.ini mediagoblin.ini
+
+# base-configs: paste.ini mediagoblin.example.ini
+
+install: installdirs
+ $(maybe_venved_python) $(srcdir)/setup.py install --prefix=$(DESTDIR)$(prefix)
+
+
+# In the future, maybe we can compile the individual .po files here?
+i18n: $(maybe_venv_dep)
+ ./devtools/compile_translations.sh
+
+
+ifneq ($(VIRTUALENV),no)
+./bin/python:
+ rm -f ./bin/python
+ ${VIRTUALENV} --system-site-packages --python=$(PYTHON) .
+ ./bin/python setup.py develop --upgrade
+
+virtualenv: bin/python extlib
+
+clean-virtualenv:
+ rm -rf ./bin/
+ rm -rf ./lib/
+ rm -rf ./include/
+endif