pdf-4 / Makefile
fokan's picture
Initial commit with static file serving and inline PDF viewing
623e14e
raw
history blame contribute delete
904 Bytes
# 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 {} +