-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (22 loc) 路 960 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (22 loc) 路 960 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
# Simple Makefile for package management
# No complex dist directory - uses .gitattributes for clean archives
.PHONY: test-archive clean help
help:
@echo "Available commands:"
@echo " test-archive - Create a test archive to see what users will get"
@echo " clean - Clean up test files"
@echo ""
@echo "The .gitattributes file handles excluding dev files from Composer installs"
test-archive:
@echo "馃С Creating test archive (simulates Composer download)..."
@git archive --format=zip --output=test-package.zip HEAD
@echo "馃搵 Extracting to see contents..."
@mkdir -p test-extract && cd test-extract && unzip -q ../test-package.zip
@echo "馃搳 Package contents (what users get):"
@find test-extract -type f | sort
@echo ""
@echo "Package size: $$(du -h test-package.zip | cut -f1)"
@echo "Total files: $$(find test-extract -type f | wc -l)"
clean:
@echo "馃Ч Cleaning test files..."
@rm -rf test-package.zip test-extract dist/