-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 855 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: install uninstall test clean build
PYTHON := python3
PIP := pip3
PREFIX := /usr/local
BINDIR := $(PREFIX)/bin
LIBDIR := $(PREFIX)/lib/codeprint
install:
@echo "Installing CodePrint..."
@$(PIP) install --user colorama pyperclip
@mkdir -p $(LIBDIR)
@cp -r src/* $(LIBDIR)/
@echo '#!/bin/bash' > $(BINDIR)/codeprint
@echo 'exec $(PYTHON) $(LIBDIR)/codeprint.py "$$@"' >> $(BINDIR)/codeprint
@chmod +x $(BINDIR)/codeprint
@echo "✅ Installation complete! Run 'gemini --help' to get started."
uninstall:
@echo "Uninstalling CodePrint..."
@rm -rf $(LIBDIR)
@rm -f $(BINDIR)/codeprint
@echo "✅ Uninstallation complete!"
test:
@$(PYTHON) -m pytest tests/
clean:
@find . -type d -name __pycache__ -exec rm -rf {} +
@find . -type f -name "*.pyc" -delete
@rm -rf build/ dist/ *.egg-info/
build:
@$(PYTHON) setup.py sdist bdist_wheel