Pi66

Home | Repos | About | Blog | Gaza

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

About | Files | Commits | Refs | License


fix: improve core functionality

Author: pi66
Date: 2026-03-24 20:36
commit: b34c1f2f

Stat

M Makefile 13 +9 -4

Diff

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 ...

Show all

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

// Created by Pi66

// Copyright ©Pi66 2026