diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e3016e2 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +.PHONY: clean dist + +APP_NAME = minimalprofile +VERSION = $$(cat appinfo/info.xml | grep -oP '\K[^<]+' || echo "1.0.0") + +dist: clean + @echo "Creating $(APP_NAME) distribution..." + @mkdir -p dist + @tar -czf dist/$(APP_NAME).tar.gz \ + --exclude='.git' \ + --exclude='.gitignore' \ + --exclude='dist' \ + --exclude='*.log' \ + --transform 's|^|$(APP_NAME)/|' \ + . + @echo "Created dist/$(APP_NAME).tar.gz" + @ls -lh dist/ + +clean: + @rm -rf dist/ \ No newline at end of file