An image-focused wordpress theme.

Makefile 2.0KB

    RUN = npm run -- MODERNIZR = build/modernizr.js MODERNIZR_CONF = src/modernizr-config.json JS_INSTALL = lezzetli/js/main.min.js COMPILED = build/main.compiled.js MINIFIED = build/main.min.js JSDEV = build/main.dev.js CSS_INSTALL = lezzetli/style.css MINCSS = build/main.min.css CSS = build/main.css ICONS = search.svg menu.svg ICONS_TARGET = lezzetli/genericons ICONS_INSTALL = $(foreach ICON,$(ICONS),$(ICONS_TARGET)/$(ICON)) ICONS_SOURCE = $(foreach ICON,$(ICONS),node_modules/genericons-neue/svg-min/$(ICON)) CUSTOM_ICONS = icons/* FONTS = ubuntu-regular-webfont.woff2 ubuntu-regular-webfont.woff ubuntu-regular-webfont.ttf FONTS_TARGET = lezzetli/fonts FONTS_SOURCE = $(foreach FONT,$(FONTS),node_modules/ubuntu-fontface/fonts/$(FONT)) FONTS_INSTALL = $(foreach FONT,$(FONTS),$(FONTS_TARGET)/$(FONT)) .PHONY: all all: $(MINIFIED) $(MINCSS) $(ICONS_INSTALL) .PHONY: release release: install rm -f lezzetli.zip 7z a lezzetli.zip lezzetli/ $(MINIFIED): $(COMPILED) $(RUN) uglify -t strictify -o $(MINIFIED) $(COMPILED) $(COMPILED): $(MODERNIZR) src/*.js $(RUN) browserify -t strictify -t babelify -o $(COMPILED) src/main.js $(JSDEV): $(MODERNIZR) src/*.js $(RUN) browserify -t strictify -t babelify --debug -o $(JSDEV) src/main.js $(MODERNIZR): $(MODERNIZR_CONF) $(RUN) modernizr -c $(MODERNIZR_CONF) -d $(MODERNIZR) $(MINCSS): $(CSS) $(RUN) cleancss --output $(MINCSS) $(CSS) $(CSS): style/*.scss $(FONTS_INSTALL) $(RUN) node-sass -x style/main.scss $(CSS) $(ICONS_INSTALL): $(CUSTOM_ICONS) mkdir -p $(ICONS_TARGET) cp $(ICONS_SOURCE) $(ICONS_TARGET) cp $(CUSTOM_ICONS) $(ICONS_TARGET) $(FONTS_INSTALL): mkdir -p $(FONTS_TARGET) cp $(FONTS_SOURCE) $(FONTS_TARGET) .PHONY: clean clean: rm -f build/* rm -f $(JS_INSTALL) rm -f $(CSS_INSTALL) rm -f $(CSS_INSTALL).map rm -f $(ICONS_TARGET)/* rm -f $(FONTS_TARGET)/* .PHONY: dev dev: $(JSDEV) $(CSS) $(ICONS_INSTALL) cp $(JSDEV) $(JS_INSTALL) cp $(CSS) $(CSS_INSTALL) .PHONY: install install: $(MINIFIED) $(MINCSS) all cp $(MINIFIED) $(JS_INSTALL) cp $(MINCSS) $(CSS_INSTALL)