mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
Remove unused make steps for custom minifing CSS
This commit is contained in:
parent
28dd1bf074
commit
11e7dcdd07
10
Makefile
10
Makefile
@ -1,8 +1,5 @@
|
|||||||
MAKE=make
|
MAKE=make
|
||||||
|
|
||||||
CSS=$(wildcard *.css)
|
|
||||||
CSS=$(subst .tiny,,$(shell find themes -type f -name '*.css'))
|
|
||||||
COMPRESSED_CSS := $(patsubst %.css,%.tiny.css,$(CSS))
|
|
||||||
PWD=`pwd`
|
PWD=`pwd`
|
||||||
|
|
||||||
# hosting variables
|
# hosting variables
|
||||||
@ -13,7 +10,7 @@ DATADIR=/usr/share/plinth
|
|||||||
PYDIR=$(DATADIR)/python/plinth
|
PYDIR=$(DATADIR)/python/plinth
|
||||||
|
|
||||||
## Catch-all targets
|
## Catch-all targets
|
||||||
default: config dirs css docs
|
default: config dirs docs
|
||||||
all: default
|
all: default
|
||||||
|
|
||||||
predepend:
|
predepend:
|
||||||
@ -54,10 +51,6 @@ dirs:
|
|||||||
config: Makefile
|
config: Makefile
|
||||||
@test -f plinth.config || cp plinth.sample.config plinth.config
|
@test -f plinth.config || cp plinth.sample.config plinth.config
|
||||||
|
|
||||||
%.tiny.css: %.css
|
|
||||||
@cat $< | python -c 'import re,sys;print re.sub("\s*([{};,:])\s*", "\\1", re.sub("/\*.*?\*/", "", re.sub("\s+", " ", sys.stdin.read())))' > $@
|
|
||||||
css: $(COMPRESSED_CSS)
|
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
@$(MAKE) -s -C doc
|
@$(MAKE) -s -C doc
|
||||||
doc: docs
|
doc: docs
|
||||||
@ -67,7 +60,6 @@ html:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -f cherrypy.config data/cherrypy_sessions/*
|
@rm -f cherrypy.config data/cherrypy_sessions/*
|
||||||
@find themes -name "*.tiny.css" -exec rm {} \;
|
|
||||||
@find . -name "*~" -exec rm {} \;
|
@find . -name "*~" -exec rm {} \;
|
||||||
@find . -name ".#*" -exec rm {} \;
|
@find . -name ".#*" -exec rm {} \;
|
||||||
@find . -name "#*" -exec rm {} \;
|
@find . -name "#*" -exec rm {} \;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user