-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (18 loc) · 859 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TODAY := $(shell date)
NLINES := $(shell wc -l < guessinggame.sh | xargs)
README.md:
echo "# Week 4 Assignment " > README.md
mydate=$(date)
eval echo "last modified on $(TODAY)" >> README.md
echo " " >> README.md
echo "This package was developed as part of the online Course" >> README.md
echo "**The Unix Workbench**" >> README.md
echo "offered by Johns Hopkins University through [Coursera](https://www.coursera.org). " >> README.md
echo "It consists of a bash shell script called guessinggame.sh." >> README.md
echo " When this file is run, the user is asked to guess the number of files in the current directory." >> README.md
echo "The program finishes when they guess correctly. " >> README.md
echo " " >> README.md
echo "The file guessinggame.sh has $(NLINES) lines. " >> README.md
echo ":+1: " >> README.md
clean:
rm README.md