Debian Codegraph @

Makefile

raw symbols SCIP
1 LIBNAME = scalene
2 PYTHON = python3
3 PYTHON_SOURCES = scalene/[a-z]*.py
4 C_SOURCES = src/source/get_line_atomic.cpp src/include/*.h* # src/source/libscalene.cpp
5
6 CXXFLAGS = /Ox /DNDEBUG /std:c++14 /Zi
7 CXX = cl
8
9 MAIN_INCLUDES = -Isrc -Isrc/include
10 INCLUDES = $(MAIN_INCLUDES) -Ivendor/Heap-Layers -Ivendor/Heap-Layers/wrappers -Ivendor/Heap-Layers/utility -Ivendor/printf
11
12 LIBFILE = lib$(LIBNAME).dll
13 WRAPPER = # vendor/Heap-Layers/wrappers/gnuwrapper.cpp
14
15 SRC = src/source/lib$(LIBNAME).cpp $(WRAPPER) vendor/printf/printf.cpp
16
17 all: # vendor-deps $(SRC) $(OTHER_DEPS)
18 # $(CXX) $(CXXFLAGS) $(INCLUDES) $(SRC) /o $(LIBFILE)
19
20 mypy:
21 -mypy $(PYTHON_SOURCES)
22
23 format: black isort clang-format
24
25 clang-format:
26 -clang-format -i $(C_SOURCES) --style=google
27
28 isort:
29 -isort $(PYTHON_SOURCES)
30
31 black:
32 -black -l 79 $(PYTHON_SOURCES)
33
34 vendor/Heap-Layers:
35 cd vendor && git clone https://github.com/emeryberger/Heap-Layers
36
37 vendor/printf/printf.cpp:
38 cd vendor && git clone https://github.com/mpaland/printf
39 cd vendor\printf && copy printf.c printf.cpp
40
41 vendor-deps: clear-vendor-dirs vendor/Heap-Layers vendor/printf/printf.cpp
42
43 clear-vendor-dirs:
44 if exist vendor\ (rmdir /Q /S vendor)
45 mkdir vendor
46
47 pkg: vendor/Heap-Layers vendor/printf/printf.cpp
48 -rm -rf dist build *egg-info
49 $(PYTHON) setup.py sdist bdist_wheel
50
51 upload: pkg # to pypi
52 $(PYTHON) -m twine upload dist/*