I have a number of less file that I would like to compile using a makefile.
DEBUG=yes
LESS_FILES= static/backend/css/styles.less static/frontend/css/styles.less
ifeq ($(DEBUG),yes)
LESSC=lessc
else
LESSC=lessc -x
endif
less: $(LESS_FILES)
%.css: %.less
$(LESSC) $< > $@
I created this makefile, but when starting make less I get :
make: Rien à faire pour « less ».
The file .css doesn’t exists yet. What’s wrong ?
I’ve got it ! Sometimes it’s help to ask the question to find the answer …