mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +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
|
||||
# (c) 2001 jannet it services
|
||||
# contact@jannet.de
|
||||
# $Id$
|
||||
LESS_SRC ?= $(wildcard *.less)
|
||||
LESS_GENERATED_CSS ?= $(patsubst %.less,%.css,$(LESS_SRC))
|
||||
LESS_CPY ?= lesscpy
|
||||
|
||||
include $(MODDIR)/make/defs.mk
|
||||
include $(MODDIR)/make/rules.mk
|
||||
|
||||
all:
|
||||
all: $(LESS_GENERATED_CSS)
|
||||
install: install_HTML
|
||||
clean: textclean localclean doneclean
|
||||
clean: textclean localclean doneclean clean.lesscpy
|
||||
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