Ants: A Computer Assisted Bullshit for random based life form research
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
909 B

BUILD_PATH=./build
DIST_PATH=./dist
EGG_INFO_PATH=./ants.egg-info
SETUPCFG=./setup.cfg
PYCACHE_DIRS=$(shell find ./ -type d -name "*__pycache__")
.RECIPEPREFIX +=
.PHONY: distclean install uninstall update dist
distclean:
echo -e "\033[93m[+] Cleaning local repo\033[0m"
sudo rm -Rf ${BUILD_PATH}
sudo rm -Rf ${DIST_PATH}
sudo rm -Rf ${EGG_INFO_PATH}
if [ ! -z "${PYCACHE_DIRS}" ]; then rm -Rvf ${PYCACHE_DIRS}; fi
dist:
echo -e "\033[93m[+] Make binary module\033[0m"
sudo python3 ./setup.py bdist_wheel
update: | distclean uninstall install
install:
echo -e "\033[93m[+] Installing module\033[0m"
sudo python3 ./setup.py install bdist_wheel
mkdir -p "${HOME}/.config/ants"
if [ ! -f "${HOME}/.config/ants/ants.yml" ]; then cp -v ./ants.yml "${HOME}/.config/ants"; fi
uninstall:
echo -e "\033[93m[+] Uninstalling module\033[0m"
sudo python3 -m pip uninstall -y ants