-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (45 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
all: clean folders modules build libs
include ../../build/modules.mk
TARGET = ${FOUNDRY}/joomla
%:
if [ -e "source/$*.php" ]; \
then make file name=$* | ${RESOLVE_NAMESPACE} > ${TARGET}/$*.php; fi
file:
@@cat source/header.php
@@cat source/${name}.php | sed '/\<\?php/{x;/Y/!{s/^/Y/;h;d;};x;}'
folders:
mkdir -p ${TARGET}
mkdir -p ${TARGET}/compiler
mkdir -p ${TARGET}/configuration
mkdir -p ${TARGET}/libraries
mkdir -p ${TARGET}/stylesheet
modules:
make -C "modules/lessphp"
make -C "modules/cssmin"
build:
make \
framework \
compiler \
module \
configuration \
configuration/config \
compiler/optimized \
compiler/resources_manifest \
compiler/resources \
compiler/static \
stylesheet \
stylesheet/analyzer \
stylesheet/builder \
stylesheet/compiler \
stylesheet/minifier \
stylesheet/task \
libraries/closure \
libraries/cssmin \
libraries/jsmin \
libraries/lessc
libs:
rm -fr ${FOUNDRY}/libraries
mv ${TARGET}/libraries ${FOUNDRY}/libraries
clean:
rm -fr ${TARGET}
.PHONY: all modules