Add squezer for extracting exif data
This commit is contained in:
@@ -48,9 +48,9 @@ $(THUMB_DIR)/%.webp: $(DIST_DIR)/%.jpg
|
||||
$(BUILD_DIR)/index.json: $(build_metas) build-index.py
|
||||
./build-index.py $(filter-out build-index.py,$^) > $@
|
||||
|
||||
$(BUILD_DIR)/%.meta.json: $(DIST_DIR)/%.jpg $(THUMB_DIR)/%.webp extract-metadata.py
|
||||
$(BUILD_DIR)/%.meta.json: $(DIST_DIR)/%.jpg $(THUMB_DIR)/%.webp
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
./extract-metadata.py --root $(DIST_DIR) --dist-path $(patsubst $(BUILD_DIR)/%.meta.json,$(DIST_DIR)/%.html,$@) --key $(patsubst $(BUILD_DIR)/%.meta.json,%,$@) --thumbnail $(patsubst $(BUILD_DIR)/%.meta.json,$(THUMB_DIR)/%.webp,$@) $< > $@
|
||||
squeezer --root $(DIST_DIR) --dist-path $(patsubst $(BUILD_DIR)/%.meta.json,$(DIST_DIR)/%.html,$@) --key $(patsubst $(BUILD_DIR)/%.meta.json,%,$@) --thumbnail $(patsubst $(BUILD_DIR)/%.meta.json,$(THUMB_DIR)/%.webp,$@) $< > $@
|
||||
|
||||
$(DIST_DIR)/index.html: $(BUILD_DIR)/index.json index.hbs
|
||||
@mkdir -p $(DIST_DIR)
|
||||
|
||||
Reference in New Issue
Block a user