Skip to content

Commit 6a3cae6

Browse files
committed
Set default makefile target to build instead of build and run
1 parent 009310e commit 6a3cae6

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
all: clean init build run
2-
3-
run:
4-
./bin/flying-toasters -windowed
5-
6-
build:
1+
build: init clean
72
gcc -o bin/flying-toasters src/flying-toasters.c -L/usr/lib -lX11 -lXpm -s -W -Wall
83

94
clean:
105
rm -f bin/flying-toasters
116

127
init:
138
mkdir -p bin
9+
10+
run:
11+
./bin/flying-toasters -windowed
12+
13+
all: build run

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ Classic [After Dark](https://en.wikipedia.org/wiki/After_Dark_(software)) screen
2121
2222
## Building locally
2323
24-
1. Install `libx11-dev` and `libxpm-dev` libraries.
25-
2. Run `make all` from the source code directory.
24+
1. Install `gcc` and `libx11-dev` and `libxpm-dev` libraries.
25+
2. Run `make build` from the source code directory to build from source.
26+
3. Built screensaver will be put into the `bin` directory. Type `make run` to preview it in windowed mode.

0 commit comments

Comments
 (0)