mirror of
https://github.com/miaowware/qrm2.git
synced 2024-10-31 14:27:11 -04:00
Merge pull request #79 from classabbyamp/update-make
Updated Makefile and templates
This commit is contained in:
commit
0b93e642d8
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,13 +1,11 @@
|
||||
# Custom
|
||||
options.py
|
||||
keys.py
|
||||
|
||||
cty.dat
|
||||
cty.json
|
||||
cty.zip
|
||||
|
||||
botenv/
|
||||
data/
|
||||
/botenv/
|
||||
/devenv/
|
||||
/data/
|
||||
|
||||
|
||||
#########################################################
|
||||
|
16
Makefile
16
Makefile
@ -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
|
||||
|
@ -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 #
|
||||
# #
|
||||
##########################################################
|
@ -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 #
|
||||
# #
|
||||
##########################################################
|
Loading…
Reference in New Issue
Block a user