Skip to content
Snippets Groups Projects
Commit 513feb56 authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Rewrote makefile to match current usage.

parent 06e1dcf4
Branches
No related tags found
No related merge requests found
.PHONY: all check test .PHONY: all output check test
CACHE_DIR = .cache all: output
$(shell mkdir -p $(CACHE_DIR)) output:
python -m muppet --env ~/puppet/generated-environments/production/modules/
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 $< > $@
check: check:
flake8 muppet flake8 muppet
...@@ -23,4 +13,4 @@ test: ...@@ -23,4 +13,4 @@ test:
python -m pytest python -m pytest
clean: clean:
-rm -r $(CACHE_DIR)/* -rm -r output
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment