mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
Remove steps for compiling templates
This commit is contained in:
parent
9239d2c627
commit
7e16b74718
7
Makefile
7
Makefile
@ -13,7 +13,7 @@ DATADIR=/usr/share/plinth
|
|||||||
PYDIR=$(DATADIR)/python/plinth
|
PYDIR=$(DATADIR)/python/plinth
|
||||||
|
|
||||||
## Catch-all targets
|
## Catch-all targets
|
||||||
default: config dirs template css docs
|
default: config dirs css docs
|
||||||
all: default
|
all: default
|
||||||
|
|
||||||
predepend:
|
predepend:
|
||||||
@ -58,10 +58,6 @@ config: Makefile
|
|||||||
@cat $< | python -c 'import re,sys;print re.sub("\s*([{};,:])\s*", "\\1", re.sub("/\*.*?\*/", "", re.sub("\s+", " ", sys.stdin.read())))' > $@
|
@cat $< | python -c 'import re,sys;print re.sub("\s*([{};,:])\s*", "\\1", re.sub("/\*.*?\*/", "", re.sub("\s+", " ", sys.stdin.read())))' > $@
|
||||||
css: $(COMPRESSED_CSS)
|
css: $(COMPRESSED_CSS)
|
||||||
|
|
||||||
template:
|
|
||||||
@$(MAKE) -s -C templates
|
|
||||||
templates: template
|
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
@$(MAKE) -s -C doc
|
@$(MAKE) -s -C doc
|
||||||
doc: docs
|
doc: docs
|
||||||
@ -78,7 +74,6 @@ clean:
|
|||||||
@find . -name "*.pyc" -exec rm {} \;
|
@find . -name "*.pyc" -exec rm {} \;
|
||||||
@find . -name "*.bak" -exec rm {} \;
|
@find . -name "*.bak" -exec rm {} \;
|
||||||
@$(MAKE) -s -C doc clean
|
@$(MAKE) -s -C doc clean
|
||||||
@$(MAKE) -s -C templates clean
|
|
||||||
rm -f plinth.config
|
rm -f plinth.config
|
||||||
rm -f predepend
|
rm -f predepend
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@ $(SOURCES):
|
|||||||
@rm -f $@
|
@rm -f $@
|
||||||
@ln -s ../$(patsubst %.mdwn,%,$@) $@
|
@ln -s ../$(patsubst %.mdwn,%,$@) $@
|
||||||
|
|
||||||
../TODO : $(TODO_SOURCES) ../*.py ../modules/*.py ../Makefile Makefile ../templates/Makefile
|
../TODO : $(TODO_SOURCES) ../*.py ../modules/*.py ../Makefile Makefile
|
||||||
grep -ro --exclude=.git* --exclude=plinth.1 --exclude=*.tex --exclude=*.html \
|
grep -ro --exclude=.git* --exclude=plinth.1 --exclude=*.tex --exclude=*.html \
|
||||||
--exclude=README.mdwn --exclude=INSTALL.mdwn \
|
--exclude=README.mdwn --exclude=INSTALL.mdwn \
|
||||||
--exclude=TODO.mdwn --exclude=COPYING.mdwn \
|
--exclude=TODO.mdwn --exclude=COPYING.mdwn \
|
||||||
|
|||||||
@ -1,15 +0,0 @@
|
|||||||
CHEETAH=cheetah
|
|
||||||
TEMPLATES=$(wildcard *.tmpl)
|
|
||||||
TEMPLATE_PYFILES := $(patsubst %.tmpl,%.py,$(TEMPLATES))
|
|
||||||
|
|
||||||
## Catch-all tagets
|
|
||||||
default: $(TEMPLATE_PYFILES)
|
|
||||||
|
|
||||||
%.py: %.tmpl
|
|
||||||
$(CHEETAH) c $<
|
|
||||||
templates: $(TEMPLATE_PYFILES)
|
|
||||||
template: templates
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf .\#* \#* *.pyc *.bak
|
|
||||||
@rm -f $(TEMPLATE_PYFILES)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user