Pi66

sta
minimal & simple status monitoring app.
git clone https://git.pi66.xyz/sta

← back to log

fix: improve core functionality

author: pi66
date: 2026-03-24 20:36
hash: b34c1f2f00c8c5f0269e25e4cf512aa04cc971a5

Diffstat:

M

Makefile
13 +++++++++++++++++++++---------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/Makefile b/Makefile
index 33a1ec7..feddd90 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,13 @@
-compile:
-   cc -o sta main.c
+build: config.h
+   cc -w -o sta sta.c ./components/* -pthread

-install: compile
+config.h:
+   cp config.def.h config.h
+
+install: build
    cp sta /usr/local/bin

 uninstall:
-   rm /usr/local/bin/sta
+   rm -f /usr/local/bin/sta
+clean:
+   rm -f ./sta