diff --git a/Makefile b/Makefile index 80571a3b..e6cda293 100644 --- a/Makefile +++ b/Makefile @@ -19,9 +19,9 @@ clean: @find bootstrap/cache -type f -not -name '.gitignore' -print0 | xargs -0 rm -rf @find storage/app/public -type f -not -name '.gitignore' -print0 | xargs -0 rm -rf @find storage/app -type f -not -name '.gitignore' -not -name public -print0 | xargs -0 rm -rf - @find storage/framework/cache -type f -or -type d -not -name '.gitignore' -print0 | xargs -0 rm -rf - @find storage/framework/sessions -type f -or -type d -not -name '.gitignore' -print0 | xargs -0 rm -rf - @find storage/framework/views -type f -or -type d -not -name '.gitignore' -print0 | xargs -0 rm -rf + @find storage/framework/cache/ -type f -or -type d -not -name '.gitignore' -mindepth 1 -print0 | xargs -0 rm -rf + @find storage/framework/sessions/ -type f -or -type d -not -name '.gitignore' -print0 | xargs -0 rm -rf + @find storage/framework/views/ -type f -or -type d -not -name '.gitignore' -print0 | xargs -0 rm -rf @find storage/logs -type f -not -name '.gitignore' -print0 | xargs -0 rm -rf .PHONY: clean-routes diff --git a/storage/framework/cache/.gitignore b/storage/framework/cache/.gitignore new file mode 100644 index 00000000..b1da3b9c --- /dev/null +++ b/storage/framework/cache/.gitignore @@ -0,0 +1,2 @@ +-* +-!.gitignore diff --git a/storage/framework/sessions/.gitignore b/storage/framework/sessions/.gitignore new file mode 100644 index 00000000..b1da3b9c --- /dev/null +++ b/storage/framework/sessions/.gitignore @@ -0,0 +1,2 @@ +-* +-!.gitignore diff --git a/storage/framework/views/.gitignore b/storage/framework/views/.gitignore new file mode 100644 index 00000000..b1da3b9c --- /dev/null +++ b/storage/framework/views/.gitignore @@ -0,0 +1,2 @@ +-* +-!.gitignore