From b7c46986ac3aa4a17b9fac2ad54afec9d6a3506f Mon Sep 17 00:00:00 2001
From: xengineering <me@xengineering.eu>
Date: Thu, 3 Apr 2025 22:01:03 +0200
Subject: web: Remove CMake

Trying meson worked so well that CMake is no longer needed.
---
 CMakeLists.txt     |  1 -
 cmake/hugo.cmake   | 21 ---------------------
 web/CMakeLists.txt | 16 ----------------
 3 files changed, 38 deletions(-)
 delete mode 100644 cmake/hugo.cmake
 delete mode 100644 web/CMakeLists.txt

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 90eac62..a21c5d0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,4 +6,3 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
 
 add_subdirectory(fw)
 add_subdirectory(pcb)
-add_subdirectory(web)
diff --git a/cmake/hugo.cmake b/cmake/hugo.cmake
deleted file mode 100644
index 0180958..0000000
--- a/cmake/hugo.cmake
+++ /dev/null
@@ -1,21 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at https://mozilla.org/MPL/2.0/.
-
-function(hugo_site target source sink dependencies)
-	add_custom_target(
-		"${target}"
-		ALL
-		DEPENDS
-			${sink}
-	)
-
-	add_custom_command(
-		OUTPUT
-			${sink}
-		COMMAND
-			hugo --source ${source} --destination ${sink}
-		DEPENDS
-			${dependencies}
-	)
-endfunction()
diff --git a/web/CMakeLists.txt b/web/CMakeLists.txt
deleted file mode 100644
index 92af0cb..0000000
--- a/web/CMakeLists.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-cmake_minimum_required(VERSION 3.10)
-
-include(hugo)
-
-set(dependencies
-	hugo.toml
-	layouts/baseof.html
-	layouts/home.html
-)
-
-hugo_site(
-	"website"
-	"${CMAKE_CURRENT_SOURCE_DIR}"
-	"${CMAKE_CURRENT_BINARY_DIR}/public"
-	"${dependencies}"
-)
-- 
cgit v1.2.3-70-g09d2