Skip to content

Commit 92d2959

Browse files
committed
Add a makefile which builds by default and also has a clean target.
The clean function is justified because lack of an idiomatic way to find and execute a clean target may have contributed to the error that that previous commit addressed. The use of a Makefile is justified by an idiomatic way to find and execute the clean function. The use of the git ls-files is justified beccause of the need to exclude the one source controlled file in package/lambda from cleanup.
1 parent 413c18f commit 92d2959

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build:
2+
./build-and-test.sh
3+
4+
clean:
5+
-rm -rf lambda/
6+
-rm lambda-deploy.zip
7+
-rm python/lambda-deploy.zip
8+
git ls-files -o python/lambda | while read f; do rm -- "$$f"; done

0 commit comments

Comments
 (0)