Commit d1dffdc8 authored by Pietro Albini's avatar Pietro Albini

Move the common theme files to static

parent d6997d23
......@@ -22,6 +22,7 @@
DIRS_JS = js themes
DIRS_CSS = themes fonts
DIRS_FONTS = fonts
DIRS_IMAGES = themes
DIR_BUILD = build
......@@ -38,12 +39,14 @@ css = $(patsubst %.css,$(DIR_BUILD)/%.min.css,$(shell find $(DIRS_CSS) -type f -
fonts_ttf = $(patsubst %,$(DIR_BUILD)/%,$(shell find $(DIRS_FONTS) -type f -name "*.ttf"))
fonts_eot = $(patsubst %.ttf,%.eot,$(fonts_ttf))
fonts_woff = $(patsubst %.ttf,%.woff,$(fonts_ttf))
images_png = $(patsubst %,$(DIR_BUILD)/%,$(shell find $(DIRS_IMAGES) -type f -name "*.png"))
images_jpg = $(patsubst %,$(DIR_BUILD)/%,$(shell find $(DIRS_IMAGES) -type f -name "*.jpg"))
.PHONY: build clean
build: $(js) $(css) $(fonts_ttf) $(fonts_eot) $(fonts_woff)
build: $(js) $(css) $(fonts_ttf) $(fonts_eot) $(fonts_woff) $(images_png) $(images_jpg)
clean:
@rm -rf $(DIR_BUILD)
......@@ -69,3 +72,11 @@ $(DIR_BUILD)/%.eot: %.ttf
$(DIR_BUILD)/%.woff: %.ttf
@mkdir -p $(dir $@)
@$(FONT_CONVERTER) $< $@
$(DIR_BUILD)/%.png: %.png
@mkdir -p $(dir $@)
@cp $< $@
$(DIR_BUILD)/%.jpg: %.jpg
@mkdir -p $(dir $@)
@cp $< $@
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment