mirror of
https://github.com/miaowware/qrm2.git
synced 2024-10-01 16:26:35 -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
|
# Custom
|
||||||
options.py
|
|
||||||
keys.py
|
|
||||||
|
|
||||||
cty.dat
|
cty.dat
|
||||||
cty.json
|
cty.json
|
||||||
cty.zip
|
cty.zip
|
||||||
|
|
||||||
botenv/
|
/botenv/
|
||||||
data/
|
/devenv/
|
||||||
|
/data/
|
||||||
|
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
|
16
Makefile
16
Makefile
@ -1,5 +1,5 @@
|
|||||||
# A quick installation script for painless discord bots.
|
# A quick installation script for painless discord bots.
|
||||||
# v1.1.0
|
# v2.0.0
|
||||||
# Copyright (c) 2019 0x5c
|
# Copyright (c) 2019 0x5c
|
||||||
# Released under the terms of the MIT license.
|
# Released under the terms of the MIT license.
|
||||||
# Part of:
|
# Part of:
|
||||||
@ -32,7 +32,7 @@ help:
|
|||||||
|
|
||||||
# Main install target
|
# Main install target
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: $(BOTENV)/req_done options.py keys.py
|
install: $(BOTENV)/req_done data/options.py data/keys.py
|
||||||
|
|
||||||
# Virual environment setup
|
# Virual environment setup
|
||||||
$(BOTENV)/success:
|
$(BOTENV)/success:
|
||||||
@ -50,14 +50,16 @@ $(BOTENV)/req_done: requirements.txt $(BOTENV)/success
|
|||||||
pip install ${PIP_OUTPUT} -U -r requirements.txt
|
pip install ${PIP_OUTPUT} -U -r requirements.txt
|
||||||
@touch $(BOTENV)/req_done
|
@touch $(BOTENV)/req_done
|
||||||
|
|
||||||
|
# Creating the ./data subdirectory
|
||||||
data:
|
data:
|
||||||
mkdir data
|
@echo "\033[34;1m--> Creating ./data ...\033[0m"
|
||||||
|
@mkdir -p data
|
||||||
|
|
||||||
# Copying templates
|
# Copying templates
|
||||||
options.py keys.py: | data
|
data/options.py data/keys.py: ./data
|
||||||
@echo "\033[34;1m--> Copying template files...\033[0m"
|
@echo "\033[34;1m--> Copying template for ./$@ ...\033[0m"
|
||||||
@cp -nv ./templates/template_$@ ./data/$@
|
@cp -nv ./templates/$@ ./$@
|
||||||
@touch ./data/$@
|
@touch ./$@
|
||||||
|
|
||||||
# Deletes the python cache and the virtual environment
|
# Deletes the python cache and the virtual environment
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
# ¡ This is a template ! #
|
# ¡ This is a template ! #
|
||||||
# #
|
# #
|
||||||
# Make sure to edit it with your preferred settings! #
|
# 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 #
|
# without the 'template_' part of the name #
|
||||||
# #
|
# #
|
||||||
##########################################################
|
##########################################################
|
@ -3,7 +3,8 @@
|
|||||||
# ¡ This is a template ! #
|
# ¡ This is a template ! #
|
||||||
# #
|
# #
|
||||||
# Make sure to edit it with your preferred settings! #
|
# 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 #
|
# without the 'template_' part of the name #
|
||||||
# #
|
# #
|
||||||
##########################################################
|
##########################################################
|
Loading…
Reference in New Issue
Block a user