mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-26 07:13:55 +01:00
htdocs.mk: Add compilation of .less files
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d17eccc0eb
commit
5b421c47a4
1 changed files with 11 additions and 6 deletions
|
|
@ -1,13 +1,18 @@
|
||||||
# generic utility modules
|
LESS_SRC ?= $(wildcard *.less)
|
||||||
# (c) 2001 jannet it services
|
LESS_GENERATED_CSS ?= $(patsubst %.less,%.css,$(LESS_SRC))
|
||||||
# contact@jannet.de
|
LESS_CPY ?= lesscpy
|
||||||
# $Id$
|
|
||||||
|
|
||||||
include $(MODDIR)/make/defs.mk
|
include $(MODDIR)/make/defs.mk
|
||||||
include $(MODDIR)/make/rules.mk
|
include $(MODDIR)/make/rules.mk
|
||||||
|
|
||||||
all:
|
all: $(LESS_GENERATED_CSS)
|
||||||
install: install_HTML
|
install: install_HTML
|
||||||
clean: textclean localclean doneclean
|
clean: textclean localclean doneclean clean.lesscpy
|
||||||
test:
|
test:
|
||||||
|
|
||||||
|
%.css: %.less
|
||||||
|
$(LESS_CPY) $< > $@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
clean.lesscpy:
|
||||||
|
rm -f $(LESS_GENERATED_CSS) *.tmp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue