File size: 904 Bytes
623e14e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
35
36
37
38
39
40
41
# Makefile for Enhanced DOCX to PDF Converter

.PHONY: help build run stop logs test clean

# Default target
help:
	@echo "Enhanced DOCX to PDF Converter - Makefile"
	@echo ""
	@echo "Usage:"
	@echo "  make build     - Build Docker images"
	@echo "  make run       - Run the application"
	@echo "  make stop      - Stop the application"
	@echo "  make logs      - View application logs"
	@echo "  make test      - Run tests"
	@echo "  make clean     - Clean up temporary files"

# Build Docker images
build:
	docker-compose build

# Run the application
run:
	docker-compose up -d

# Stop the application
stop:
	docker-compose down

# View logs
logs:
	docker-compose logs -f

# Run tests
test:
	docker-compose run --rm docx-to-pdf-enhanced python3 -m pytest tests/

# Clean up temporary files
clean:
	rm -rf conversions/*
	find . -name "*.pyc" -delete
	find . -name "__pycache__" -type d -exec rm -rf {} +