Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
22c3b77c
Commit
22c3b77c
authored
Oct 23, 2018
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build rule for css files
parent
38c69274
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
src/tools/bld/src/os_linux/jsw_generic.mk
src/tools/bld/src/os_linux/jsw_generic.mk
+17
-2
src/tools/bld/src/os_linux/rules.mk
src/tools/bld/src/os_linux/rules.mk
+4
-0
No files found.
src/tools/bld/src/os_linux/jsw_generic.mk
View file @
22c3b77c
...
@@ -64,13 +64,24 @@ png_sources := $(sort \
...
@@ -64,13 +64,24 @@ png_sources := $(sort \
)
\
)
\
)
)
css_sources
:=
$(
sort
\
$(
foreach
file,
\
$(
foreach
dir
,
\
$(source_dirs)
,
\
$(
wildcard
$(dir)
/
*
.css
)
\
)
,
$(
notdir
$(file)
)
\
)
\
)
export_js
:=
$(
addprefix
$(web_dir)
/,
$(js_sources)
)
export_js
:=
$(
addprefix
$(web_dir)
/,
$(js_sources)
)
export_html
:=
$(
addprefix
$(web_dir)
/,
$(html_sources)
)
export_html
:=
$(
addprefix
$(web_dir)
/,
$(html_sources)
)
export_png
:=
$(
addprefix
$(web_dir)
/,
$(png_sources)
)
export_png
:=
$(
addprefix
$(web_dir)
/,
$(png_sources)
)
export_css
:=
$(
addprefix
$(web_dir)
/,
$(css_sources)
)
clean_js
:=
$(
patsubst
%.js,clean_%.js,
$(js_sources)
)
clean_js
:=
$(
patsubst
%.js,clean_%.js,
$(js_sources)
)
clean_html
:=
$(
patsubst
%.html,clean_%.html,
$(html_sources)
)
clean_html
:=
$(
patsubst
%.html,clean_%.html,
$(html_sources)
)
clean_png
:=
$(
patsubst
%.png,clean_%.png,
$(png_sources)
)
clean_png
:=
$(
patsubst
%.png,clean_%.png,
$(png_sources)
)
clean_css
:=
$(
patsubst
%.css,clean_%.css,
$(css_sources)
)
.PHONY
:
all init copy lib exe clean realclean
.PHONY
:
all init copy lib exe clean realclean
...
@@ -78,13 +89,13 @@ all : init copy lib exe | silent
...
@@ -78,13 +89,13 @@ all : init copy lib exe | silent
init
:
init
:
copy
:
$(export_js) $(export_html) $(export_png) | silent
copy
:
$(export_js) $(export_html) $(export_png)
$(export_css)
| silent
lib
:
lib
:
exe
:
exe
:
clean
:
$(clean_js) $(clean_html) $(clean_png)
clean
:
$(clean_js) $(clean_html) $(clean_png)
$(clean_css)
clean_copy
:
$(clean)
clean_copy
:
$(clean)
...
@@ -106,6 +117,10 @@ $(clean_png) : clean_%.png : %.png
...
@@ -106,6 +117,10 @@ $(clean_png) : clean_%.png : %.png
@
echo
"Removing png:
$(web_dir)
/
$*
.png"
@
echo
"Removing png:
$(web_dir)
/
$*
.png"
@
$(rm)
$(rmflags)
$(web_dir)
/
$*
.png
@
$(rm)
$(rmflags)
$(web_dir)
/
$*
.png
$(clean_css)
:
clean_%.css : %.css
@
echo
"Removing png:
$(web_dir)
/
$*
.css"
@
$(rm)
$(rmflags)
$(web_dir)
/
$*
.css
-include
$(source_dependencies)
-include
$(source_dependencies)
...
...
src/tools/bld/src/os_linux/rules.mk
View file @
22c3b77c
...
@@ -284,6 +284,10 @@ $(web_dir)/%.html : ../../%.html
...
@@ -284,6 +284,10 @@ $(web_dir)/%.html : ../../%.html
@
$(log_h_h)
@
$(log_h_h)
@
$(cp)
$(cpflags)
$(source)
$(target)
@
$(cp)
$(cpflags)
$(source)
$(target)
$(web_dir)/%.css
:
../../%.css
@
$(log_h_h)
@
$(cp)
$(cpflags)
$(source)
$(target)
$(web_dir)/%.js
:
../../%.js
$(web_dir)/%.js
:
../../%.js
@
$(log_h_h)
@
$(log_h_h)
@
$(cp)
$(cpflags)
$(source)
$(target)
@
$(cp)
$(cpflags)
$(source)
$(target)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment