-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
44 lines (26 loc) · 1.03 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
define readmetext
# Welcome to Guessing game
## Guess the number of files in a folder
Run [guessinggame.sh](https://github.com/Karnabanu/Guess_the_Folder/blob/master/guessinggame.sh) in a shell.
You will be prompted with
`How may files are there in the folder`
You can give your inputs. Only **Numbers** are allowed
If number of files you guessed is more than actual number files you will get
`Your guess is too high`
If the number is smaller than actual number you will get
`Your guess is too high`
This will run until you enter correct guess.
when you enter correct guess you will get
`Congratulations your guess is correct`
And script will exit and you will get prompt back.
endef
export readmetext
.PHONEY: all clean Readme.md
all: clean Readme.md FORCE
Readme.md: clean FORCE
$(file > Readme.md,$(readmetext))
printf "\nguessingame.sh contains $(shell wc -l guessinggame.sh | cut -f 1 -d " ") lines " >> Readme.md
printf "\n## This file is create on $(shell date)" >> Readme.md
clean:
test Readme.md || rm Readme.md
FORCE: