Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
8
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Rautenkranz
site
Commits
aa0182e7
Commit
aa0182e7
authored
Feb 20, 2018
by
Tobias Rautenkranz
Browse files
Build png images from svg
parent
ed5cd2e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
aa0182e7
changelog
:=
_includes/changelog.html.fragment
all
:
$(changelog)
all
:
$(changelog)
images
jekyll build
-q
rm
_site/Makefile
# FIXME exclude in jekyll not working
REPO
:=
https://gitlab.com/tobiasrautenkranz/site/commit/
.PHONY
:
$(changelog)
$(changelog)
:
@
echo
"<dl>"
>
$@
@
git log
--pretty
=
format:
'<dt>%n<a href="
$(REPO)
%H">%ai</a>%n</dt><dd>%s</dd>%n'
>>
$@
@
echo
"</dl>"
>>
$@
# serve locally
serve
:
jekyll serve
-B
-D
>
/dev/null 2>&1
...
...
@@ -13,14 +21,20 @@ kill:
serve-fg
:
jekyll serve
-D
REPO
:=
https://gitlab.com/tobiasrautenkranz/site/commit/
# images
img/%.png
:
img/%.svg
inkscape
--without-gui
--export-png
=
$@
--export-dpi
=
70
$<
>
/dev/null
optipng
-quiet
$@
.PHONY
:
$(changelog)
$(changelog)
:
@
echo
"<dl>"
>
$@
@
git log
--pretty
=
format:
'<dt>%n<a href="
$(REPO)
%H">%ai</a>%n</dt><dd>%s</dd>%n'
>>
$@
@
echo
"</dl>"
>>
$@
# images to be built
image_objects
:=
include
image_objects.mk
image_objects_full_path
:=
$(
addprefix
img/,
$(image_objects)
)
.PHONY
:
images
images
:
$(image_objects_full_path)
# clean
.PHONY
:
clean
clean
:
rm
-f
$(changelog)
...
...
@@ -28,7 +42,9 @@ clean:
.PHONY
:
dist-clean
dist-clean
:
clean
jekyll clean
rm
-f
$(image_objects_full_path)
# lint
mld_rules
:=
"~MD002,~MD012,~MD033"
.PHONY
:
lint
...
...
_config.yml
View file @
aa0182e7
...
...
@@ -23,3 +23,5 @@ gems:
exclude
:
-
Gemfile
-
Gemfile.lock
-
Makefile
-
image_objects.mk
image_objects.mk
0 → 100644
View file @
aa0182e7
Write
Preview
Supports
Markdown
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