Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robin Schmöcker
Stud.IP
Commits
21514093
Commit
21514093
authored
3 years ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
using dependencies
parent
2fdd04db
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+26
-11
26 additions, 11 deletions
Makefile
with
26 additions
and
11 deletions
Makefile
+
26
−
11
View file @
21514093
...
...
@@ -5,6 +5,13 @@ RESOURCES = $(shell find resources -type f)
PHP_SOURCES
=
$(
shell find app config lib public templates
-name
'*.php'
\(
!
-path
'public/plugins_packages/*'
-o
-path
'public/plugins_packages/core/*'
\)
)
VUE_SOURCES
=
$(
shell find resources
-name
'*.js'
-o
-name
'*.vue'
)
ICONS_SOURCE
=
$(
shell find public/assets/images/icons/blue
-name
'*.svg'
)
ICONS
=
$(
ICONS_SOURCE:public/assets/images/icons/blue/%
=
public/assets/images/icons/black/%
)
ICONS
+=
$(
ICONS_SOURCE:public/assets/images/icons/blue/%
=
public/assets/images/icons/green/%
)
ICONS
+=
$(
ICONS_SOURCE:public/assets/images/icons/blue/%
=
public/assets/images/icons/grey/%
)
ICONS
+=
$(
ICONS_SOURCE:public/assets/images/icons/blue/%
=
public/assets/images/icons/red/%
)
ICONS
+=
$(
ICONS_SOURCE:public/assets/images/icons/blue/%
=
public/assets/images/icons/white/%
)
ICONS
+=
$(
ICONS_SOURCE:public/assets/images/icons/blue/%
=
public/assets/images/icons/yellow/%
)
# build all needed files
build
:
composer webpack-prod
...
...
@@ -79,23 +86,31 @@ test-jsonapi: $(CODECEPT)
test-unit
:
$(CODECEPT)
$(
CODECEPT
)
run unit
catalogs
:
npm $(CATALOGS)
# rules for icons
optimize-icons
:
npm $(ICONS_SOURCE)
@
echo
$(
ICONS_SOURCE
)
| xargs
-P0
$(
NPM_BIN
)
/svgo
-q
--config
=
config/svgo.config.js
clean-icons
:
find public/assets/images/icons
-type
f
-not
-path
'*blue*'
-delete
optimize-icons
:
npm
find public/assets/images/icons/blue
-type
f | xargs
-P0
$(
NPM_BIN
)
/svgo
-q
--config
=
config/svgo.config.js
icons
:
optimize-icons
find public/assets/images/icons/blue
-type
f
-print0
| xargs
-0
-n1
-I
{}
echo
'sed "s/#28497c/#000000/" {} > {}'
|
sed
's#icons/blue#icons/black#2'
| sh
find public/assets/images/icons/blue
-type
f
-print0
| xargs
-0
-n1
-I
{}
echo
'sed "s/#28497c/#00962d/" {} > {}'
|
sed
's#icons/blue#icons/green#2'
| sh
find public/assets/images/icons/blue
-type
f
-print0
| xargs
-0
-n1
-I
{}
echo
'sed "s/#28497c/#6e6e6e/" {} > {}'
|
sed
's#icons/blue#icons/grey#2'
| sh
find public/assets/images/icons/blue
-type
f
-print0
| xargs
-0
-n1
-I
{}
echo
'sed "s/#28497c/#cb1800/" {} > {}'
|
sed
's#icons/blue#icons/red#2'
| sh
find public/assets/images/icons/blue
-type
f
-print0
| xargs
-0
-n1
-I
{}
echo
'sed "s/#28497c/#ffffff/" {} > {}'
|
sed
's#icons/blue#icons/white#2'
| sh
find public/assets/images/icons/blue
-type
f
-print0
| xargs
-0
-n1
-I
{}
echo
'sed "s/#28497c/#ffad00/" {} > {}'
|
sed
's#icons/blue#icons/yellow#2'
| sh
public/assets/images/icons/black/%.svg
:
public/assets/images/icons/blue/%.svg
@
sed
's/#28497c/#000000/'
$<
>
$@
public/assets/images/icons/red/%.svg
:
public/assets/images/icons/blue/%.svg
@
sed
's/#28497c/#cb1800/'
$<
>
$@
public/assets/images/icons/green/%.svg
:
public/assets/images/icons/blue/%.svg
@
sed
's/#28497c/#00962d/'
$<
>
$@
public/assets/images/icons/grey/%.svg
:
public/assets/images/icons/blue/%.svg
@
sed
's/#28497c/#6e6e6e/'
$<
>
$@
public/assets/images/icons/white/%.svg
:
public/assets/images/icons/blue/%.svg
@
sed
's/#28497c/#ffffff/'
$<
>
$@
public/assets/images/icons/yellow/%.svg
:
public/assets/images/icons/blue/%.svg
@
sed
's/#28497c/#ffad00/'
$<
>
$@
icons
:
$(ICONS)
# default rules for gettext handling
catalogs
:
npm $(CATALOGS)
js-%.pot
:
$(VUE_SOURCES)
$(
NPM_BIN
)
/gettext-extract
--attribute
v-translate
--output
$@
$(
VUE_SOURCES
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment