-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 725 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 725 Bytes
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
VERSION = 0.1.1
main:
gcc src/main.c -Wall -std=c99 -o uwulang
test:
./uwulang test/hellOwOrld.uwu
install: clean package package-build
sudo dpkg -i uwulang_$(VERSION)_all.deb
clean:
rm uwulang || true
rm -rf uwulang_$(VERSION)_all || true
package:
@groff -man -Tascii uwulang.1 > uwulang.1.txt
@install -D -m 644 uwulang.1.txt uwulang_$(VERSION)_all/usr/share/man/man1/uwulang.1.gz
@rm uwulang.1.txt
@gcc src/main.c -Wall -std=c99 -o uwulang
@mkdir uwulang_$(VERSION)_all/usr/bin
@cp ./uwulang uwulang_$(VERSION)_all/usr/bin/uwulang
@mkdir uwulang_$(VERSION)_all/DEBIAN
@cp DEBIAN/control uwulang_$(VERSION)_all/DEBIAN/control
# run package build
package-build:
@dpkg-deb --build uwulang_$(VERSION)_all/