# Makefile for Clean Log QGIS Plugin

PLUGINNAME = clean_log
PY_FILES = clean_log.py __init__.py core ui
EXTRAS = metadata.txt clean.svg assets
INSTALL_DIR = ~/.local/share/QGIS/QGIS4/profiles/default/python/plugins/$(PLUGINNAME)

default: zip

compile:
	@echo "No compilation needed for this plugin"

zip: 
	zip -r $(PLUGINNAME).zip $(PY_FILES) $(EXTRAS)
	@echo "Plugin packaged as $(PLUGINNAME).zip"

clean:
	rm -f $(PLUGINNAME).zip
	@echo "Cleaned package files"

install: zip
	mkdir -p $(INSTALL_DIR)
	cp -r $(PY_FILES) $(EXTRAS) $(INSTALL_DIR)/
	@echo "Plugin installed"

.PHONY: compile zip clean install
