From 513feb56d9fd530327e1f7ae69632ba3e3046f97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se>
Date: Thu, 25 May 2023 17:27:36 +0200
Subject: [PATCH] Rewrote makefile to match current usage.

---
 Makefile | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

diff --git a/Makefile b/Makefile
index 64bc5e8..36a67c1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,9 @@
-.PHONY: all check test
+.PHONY: all output check test
 
-CACHE_DIR = .cache
+all: output
 
-$(shell mkdir -p $(CACHE_DIR))
-
-include .deps.mk
-
-$(CACHE_DIR)/output.json:
-	./merge-json.py --out $@ $^
-
-$(CACHE_DIR)/%.json:
-	cd $< && puppet strings generate --format json --out $(CURDIR)/$@
-
-index.html: $(CACHE_DIR)/output.json *.py
-	python3 main.py $< > $@
+output:
+	python -m muppet --env ~/puppet/generated-environments/production/modules/
 
 check:
 	flake8 muppet
@@ -23,4 +13,4 @@ test:
 	python -m pytest
 
 clean:
-	-rm -r $(CACHE_DIR)/*
+	-rm -r output
-- 
GitLab