From 65081e7eba296b4ba54a8ae6c9ce4dc9c206ea7e Mon Sep 17 00:00:00 2001 From: Björn Mattsson Date: Fri, 18 Nov 2022 08:39:22 +0100 Subject: Added new dirs for import / removal --- Makefile.validate | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Makefile.validate') diff --git a/Makefile.validate b/Makefile.validate index 22d487b9..cc4848bc 100644 --- a/Makefile.validate +++ b/Makefile.validate @@ -1,7 +1,16 @@ -VALIDATEXML=$(patsubst swamid-2.0/%.xml,.time/%.validate,$(wildcard swamid-2.0/*.xml)) +EDUGAIN=$(patsubst swamid-edugain/%.xml,.time/%.validate,$(wildcard swamid-edugain/*.xml)) +SWAMDI20=$(patsubst swamid-2.0/%.xml,.time/%.validate,$(wildcard swamid-2.0/*.xml)) +TESTING=$(patsubst swamid-testing/%.xml,.time/%.validate,$(wildcard swamid-testing/*.xml)) all: validate -validate: $(VALIDATEXML) +validate: $(EDUGAIN) $(SWAMDI20) $(TESTING) + +.time/%.validate: swamid-edugain/%.xml + @docker exec swamid-metadata-sp /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@ + .time/%.validate: swamid-2.0/%.xml @docker exec swamid-metadata-sp /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@ + +.time/%.validate: swamid-testing/%.xml + @docker exec swamid-metadata-sp /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@ -- cgit v1.2.3