Add makefile to provide an interface for various commands.

Signed-off-by: Charles <charles@declareSub.com>
This commit is contained in:
Charles 2015-07-28 12:47:28 -04:00
parent ab99cc993d
commit 839bb32bfd
5 changed files with 33 additions and 0 deletions

15
Makefile Normal file
View file

@ -0,0 +1,15 @@
SCRIPT_DIR ?= "make_scripts"
# Removes development/build directories that accumulate over time.
clean:
@$(SCRIPT_DIR)/clean.bash
moof:
@$(SCRIPT_DIR)/moof.bash
# Creates virtual environments for development using the Python executables in $ENV_LIST.
# Existing environments are recreated.
venv:
@$(SCRIPT_DIR)/venv.bash

View file

@ -0,0 +1,12 @@
#! /bin/bash
#do this inside my dev venv
python2.7.venv/bin/python setup.py sdist
python2.7.venv.venv/bin/python setup.py bdist_wheel
rm -rf python2.7-sdist.venv
virtualenv python2.7-sdist.venv
python2.7-sdist.venv/bin/pip install dist/pygments-xojo-0.0.0.tar.gz
#check import and version.
#python2.7-sdist.venv/bin/python -c 'from pygments_xojo import __version__;print(__version__)'

3
make_scripts/clean.bash Executable file
View file

@ -0,0 +1,3 @@
#! /bin/bash
rm -rf *.venv

3
make_scripts/moof.bash Executable file
View file

@ -0,0 +1,3 @@
#! /bin/bash
echo "moof"