blob: b89da516b063f7c21e79819288886f13f4aa016a (
plain)
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
|
# Infection Simulator Tool
This program simulates the spread of infection among students over a specified number of days.
## Dependencies
- GCC compiler
- Standard C library
- make utility
- gzip (for man page)
If unavailable, follow the instructions on how to install GCC here: https://gcc.gnu.org/install/
## Building for Linux
1. Open a terminal in the project directory.
2. Run the following command to build the program and prepare the man page:
```bash
make
```
3. To install the program and man page (requires root privileges):
```bash
sudo make install
```
This will install the program to `/usr/local/bin` and the man page to `/usr/local/share/man/man1`.
4. To uninstall:
```bash
sudo make uninstall
```
5. To clean the build files:
```bash
make clean
```
## Running the Program
After installation, you can run the program from any directory:
```bash
infection_simulator
```
To view the man page:
```bash
man infection_simulator
```
|