forked from markos/ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (30 loc) · 865 Bytes
/
Makefile
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
27
28
29
30
31
32
33
all:
@echo "This script would delete your root harddrive, but as a favour to"
@echo "those who did not install a revertible file system on their computer,"
@echo "this functionality has been moved."
@echo
@echo "For future reference please use:"
@echo
@echo " $ make serious-damage"
@echo
@echo "or just"
@echo
@echo " $ make clean"
@echo
@echo "for short. You are welcome, Ed."
@echo
clean:
find . | grep "~" | xargs rm -f
find . | grep "#" | xargs rm -f
find . | grep "\.pyc" | xargs rm -f
find . | grep "\.gch" | xargs rm -f # remove precompiled headers
find . | grep "\.orig" | xargs rm -f
rm -rf build/
rm -rf bazel-bin/
rm -rf bazel-fetch-ledger/
rm -rf bazel-genfiles/
rm -rf bazel-out/
rm -rf bazel-testlogs/
count:
find libs/ -type f | grep "\.hpp" | xargs cat | wc -l
find libs/ -type f | grep "\.cpp" | xargs cat | wc -l