Commit f086cdef authored by Tristan Renon's avatar Tristan Renon 💬
Browse files

add makefile + gitignore

parent f83ef44e
Prog/Python/motorPhaser/.idea/
Prog/Python/motorPhaser/__pycache__/
Prog/Python/motorPhaser/venv/
Prog/Python/motorPhaser/.venv/
Prog/Python/motorPhaser/build/
Prog/Python/motorPhaser/dist/
\ No newline at end of file
###############################################################################
## Informations #
###############################################################################
# @echo is a silence echo (command not print in command prompt)
# @echo. displays a blank line
# Each command line in makefile are executed on a new command prompt
# Use && If you want a command to be executed in the same prompt as the
# previous one
# Take care of the tab under targets (it should be a tabulation character,
# not some space character
# Make has to be installed (if MinGW is already installed, just rename
# "mingw32-make.exe" to "make.exe" and add "C:\MinGW\bin" to the windows
# environment variable PATH
###############################################################################
## Globals #
###############################################################################
VENV = .venv
PIP = $(VENV)\Scripts\pip.exe
PYTHON = $(VENV)\Scripts\python.exe
ACTIVATE = $(VENV)\Scripts\activate.bat
REQUIREMENTS = requirements.txt
VIZUALISATION_SCRIPT = tkinterTestRealWithStatorOptimized.py
###############################################################################
## Targets #
###############################################################################
build: requirements.txt
python -m venv $(VENV) && $(ACTIVATE) && $(PIP) install -r $(REQUIREMENTS)
run:
$(ACTIVATE) && $(PYTHON) $(VIZUALISATION_SCRIPT)
clean:
rmdir /s /q $(VENV)
rmdir /s /q __pycache__
rmdir /s /q .idea
freeze:
$(ACTIVATE) && $(PIP) freeze > $(REQUIREMENTS)
list_dep:
$(ACTIVATE) && $(PIP) list
help:
@echo "$(UCF_SCRIPT)" aims to automatically generate an UCF (Xilinx Constraint File) from an Excel Sheet
@echo "$(VHD_SCRIPT)" aims to automatically generate vhd code that prevents changing the UCF for a design by generating additionnal hardware
@echo.
@echo - Use : 'make build' to create virtual environment, and install the required packages
@echo - Use : 'make run' to launch the motor phaser vizualisation tool python script
@echo - Use : 'make clean' to remove the generated UCF/VHD and the created virtual environment
@echo - Use : 'make freeze' to update the requirements.txt file (list of packages for pip install)
@echo - Use : 'make list_dep' to show the list of actual dependencies
\ No newline at end of file
cx-Freeze==6.6
cx-Logging==3.0
cycler==0.10.0
importlib-metadata==4.0.1
kiwisolver==1.3.1
matplotlib==3.4.2
numpy==1.20.3
Pillow==8.2.0
pyparsing==2.4.7
python-dateutil==2.8.1
scipy==1.6.3
six==1.16.0
typing-extensions==3.10.0.0
zipp==3.4.1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment