mirror of
https://github.com/Clortox/dashboard.git
synced 2026-03-18 07:27:58 +00:00
Add wifi qrcode script and instructions
This commit is contained in:
11
Makefile
11
Makefile
@@ -39,6 +39,9 @@ DEFINITIONS = -DDATA_='"$(DATA)"'
|
||||
DEFINITIONS += -DDATA_IMG_='"$(DATA_IMG)"'
|
||||
DEFINITIONS += -DDATA_FONT_='"$(DATA_FONT)"'
|
||||
|
||||
WIFI_SSID = "DEFAULT_WIFI"
|
||||
WIFI_PASS = "DEFAULT_PASS"
|
||||
|
||||
all : $(OBJ)
|
||||
@echo LD $@
|
||||
@$(CC) $(FLAGS) $(CFLAGS) -o $(BIN)/$(TARGET) $(OBJ) $(LIBRARIES)
|
||||
@@ -50,10 +53,13 @@ all : $(OBJ)
|
||||
src/config.hpp :
|
||||
cp src/config.def.hpp src/config.hpp
|
||||
|
||||
img/wifi.png :
|
||||
./scripts/wifi.sh $(WIFI_SSID) $(WIFI_PASS)
|
||||
|
||||
open : all
|
||||
$(BIN)/$(TARGET)
|
||||
|
||||
$(OBJ): src/config.hpp
|
||||
$(OBJ): src/config.hpp img/wifi.png
|
||||
|
||||
install : all
|
||||
mkdir -p $(PREFIX)/bin
|
||||
@@ -73,5 +79,8 @@ clean :
|
||||
find . -type f -name '*.o' -delete
|
||||
rm -rf $(BIN)/*
|
||||
|
||||
clean-wifi:
|
||||
rm -f ./img/wifi.png
|
||||
|
||||
clean-config :
|
||||
rm -rf src/config.hpp
|
||||
|
||||
Reference in New Issue
Block a user