mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
...
This commit is contained in:
commit
35071d7212
78 files changed
+5570
No files matched your search
@@ -0,0 +1,36 @@
|
||||
MAKE=make
|
||||
|
||||
#TODO: add install target
|
||||
|
||||
CSS=$(wildcard *.css)
|
||||
CSS=$(subst .tiny,,$(shell find themes -type f -name '*.css'))
|
||||
COMPRESSED_CSS := $(patsubst %.css,%.tiny.css,$(CSS))
|
||||
|
||||
## Catch-all tagets
|
||||
default: template docs css
|
||||
all: default
|
||||
|
||||
%.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)
|
||||
|
||||
template:
|
||||
@$(MAKE) -s -C templates
|
||||
templates: template
|
||||
|
||||
docs:
|
||||
@$(MAKE) -s -C doc
|
||||
doc: docs
|
||||
|
||||
html:
|
||||
@$(MAKE) -s -C doc html
|
||||
|
||||
clean:
|
||||
@find themes -name "*.tiny.css" -exec rm {} \;
|
||||
@find . -name "*~" -exec rm {} \;
|
||||
@find . -name ".#*" -exec rm {} \;
|
||||
@find . -name "#*" -exec rm {} \;
|
||||
@find . -name "*.pyc" -exec rm {} \;
|
||||
@find . -name "*.bak" -exec rm {} \;
|
||||
@$(MAKE) -s -C doc clean
|
||||
@$(MAKE) -s -C templates clean
|
||||
Reference in new issue
Block a user