Skip to content

Commit 6a5907b

Browse files
Use make instead of cmake and update irc server info
1 parent a7ee611 commit 6a5907b

File tree

5 files changed

+35
-35
lines changed

5 files changed

+35
-35
lines changed

.build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
image: archlinux
22
packages:
3-
- cmake
43
- asciidoc
5-
- samurai
64
sources:
75
- https://github.com/KnightOS/patchrom
86
environment:
97
project: patchrom
108
tasks:
119
- test: |
1210
cd ${project}
13-
mkdir build
14-
cd build
15-
cmake .. -GNinja
16-
samu
11+
make

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
CMakeCache.txt
22
CMakeFiles
3-
Makefile
43
cmake_install.cmake
54
install_manifest.txt
65
*.swp

CMakeLists.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
CFLAGS=-Wall -Wextra -pedantic -std=c99 -O2 -g
2+
3+
all: bin/patchrom bin/patchrom.1
4+
5+
bin/patchrom:main.o
6+
mkdir -p bin/
7+
$(CC) $(CFLAGS) $^ -o $@
8+
9+
bin/patchrom.1:patchrom.1.txt
10+
a2x --no-xmllint --doctype manpage --format manpage patchrom.1.txt -v -D bin/
11+
12+
DESTDIR=/usr/local
13+
BINDIR=$(DESTDIR)/bin/
14+
MANDIR=$(DESTDIR)/share/man/
15+
16+
install: bin/patchrom
17+
mkdir -p $(BINDIR)
18+
cp bin/patchrom $(BINDIR)
19+
20+
install_man: bin/patchrom.1
21+
mkdir -p $(MANDIR)/man1/
22+
cp bin/patchrom.1 $(MANDIR)/man1/
23+
24+
uninstall:
25+
$(RM) $(BINDIR)/patchrom $(MANDIR)/man1/patchrom.1
26+
27+
clean:
28+
$(RM) bin *.o -rv

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ index definitions.
77

88
## Installation
99

10-
For Linux/Mac/etc, install cmake, make, asciidoc, and a C compiler,
10+
For Linux/Mac/etc, install make, asciidoc, and a C compiler,
1111
then:
1212

13-
$ cmake .
14-
$ make
13+
$ make
1514
# make install # as root
15+
# make install_man # as root
1616

17-
On Windows, do the same thing under cygwin after installing cmake,
18-
your favorite C compiler, and asciidoc.
17+
On Windows, do the same thing under cygwin after installing
18+
your favorite C compiler and asciidoc.
1919

2020
## Help, Bugs, Feedback
2121

2222
If you need help with KnightOS, want to keep up with progress, chat with
2323
developers, or ask any other questions about KnightOS, you can hang out in the
24-
IRC channel: [#knightos on irc.freenode.net](http://webchat.freenode.net/?channels=knightos).
24+
IRC channel: [#knightos on irc.libera.chat](https://web.libera.chat).
2525

2626
To report bugs, please create [a GitHub issue](https://github.com/KnightOS/KnightOS/issues/new) or contact us on IRC.
2727

0 commit comments

Comments
 (0)