-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (57 loc) · 1.74 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
test:
./gradlew clean
./gradlew test
md := "\n\
## Link to the problem\n\
\n\
- https://leetcode.com/problems/binary-search/\n\
\n\
##### Difficulty Level (according to Leetcode)\n\
\n\
> Easy ( Array | Binary Search )\n\
\n\
##### Resume of the problem:\n\
\n\
\n\
##### Notes\n\
\n\
EOF"
define MARKDOWN_BODY
'## Link to the problem\n\
\n\
- https://leetcode.com/problems/binary-search/\n\
\n\
##### Difficulty Level (according to Leetcode)\n\
\n\
> Easy ( Array | Binary Search )\n\
\n\
\n\
##### Resume of the problem:\
\n\
\n\
\n\
##### Notes\n'
endef
define SOLUTION_BODY
'package drll.problems.leetcode.solution;\n\
\n\
public class BinarySearch {\n\
\t public int search(int[] nums, int target) {\n\
return -1;\n\
}\n\
}'
endef
prepareLeetCodeContest:
mkdir -p "src/main/java/drll/problems/leetCodeContest"
mkdir -p "src/main/java/drll/problems/leetCodeContest/problem1"
touch "src/main/java/drll/problems/leetCodeContest/problem1/Problem1.md"
@echo $(MARKDOWN_BODY) > "src/main/java/drll/problems/leetCodeContest/problem1/Problem1.md"
mkdir -p "src/main/java/drll/problems/leetCodeContest/problem2"
touch "src/main/java/drll/problems/leetCodeContest/problem2/Problem2.md"
@echo $(MARKDOWN_BODY) > "src/main/java/drll/problems/leetCodeContest/problem2/Problem2.md"
mkdir -p "src/main/java/drll/problems/leetCodeContest/problem3"
touch "src/main/java/drll/problems/leetCodeContest/problem3/Problem3.md"
@echo $(MARKDOWN_BODY) > "src/main/java/drll/problems/leetCodeContest/problem3/Problem3.md"
mkdir -p "src/main/java/drll/problems/leetCodeContest/problem4"
touch "src/main/java/drll/problems/leetCodeContest/problem4/Problem4.md"
@echo $(MARKDOWN_BODY) > "src/main/java/drll/problems/leetCodeContest/problem4/Problem4.md"