Merge pull request #79 from classabbyamp/update-make

Updated Makefile and templates
This commit is contained in:
Abigail Gold 2019-11-25 11:03:18 -05:00 committed by GitHub
commit 0b93e642d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 14 deletions

8
.gitignore vendored
View File

@ -1,13 +1,11 @@
# Custom
options.py
keys.py
cty.dat
cty.json
cty.zip
botenv/
data/
/botenv/
/devenv/
/data/
#########################################################

View File

@ -1,5 +1,5 @@
# A quick installation script for painless discord bots.
# v1.1.0
# v2.0.0
# Copyright (c) 2019 0x5c
# Released under the terms of the MIT license.
# Part of:
@ -32,7 +32,7 @@ help:
# Main install target
.PHONY: install
install: $(BOTENV)/req_done options.py keys.py
install: $(BOTENV)/req_done data/options.py data/keys.py
# Virual environment setup
$(BOTENV)/success:
@ -50,14 +50,16 @@ $(BOTENV)/req_done: requirements.txt $(BOTENV)/success
pip install ${PIP_OUTPUT} -U -r requirements.txt
@touch $(BOTENV)/req_done
# Creating the ./data subdirectory
data:
mkdir data
@echo "\033[34;1m--> Creating ./data ...\033[0m"
@mkdir -p data
# Copying templates
options.py keys.py: | data
@echo "\033[34;1m--> Copying template files...\033[0m"
@cp -nv ./templates/template_$@ ./data/$@
@touch ./data/$@
data/options.py data/keys.py: ./data
@echo "\033[34;1m--> Copying template for ./$@ ...\033[0m"
@cp -nv ./templates/$@ ./$@
@touch ./$@
# Deletes the python cache and the virtual environment
.PHONY: clean

View File

@ -3,7 +3,8 @@
# ¡ This is a template ! #
# #
# Make sure to edit it with your preferred settings! #
# And to place it in the root of the bot's folder, #
# And to place it in the /data #
# subdirectory of the bot, #
# without the 'template_' part of the name #
# #
##########################################################

View File

@ -3,7 +3,8 @@
# ¡ This is a template ! #
# #
# Make sure to edit it with your preferred settings! #
# And to place it in the root of the bot's folder, #
# And to place it in the /data #
# subdirectory of the bot, #
# without the 'template_' part of the name #
# #
##########################################################