Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Via Christus
avadanlık
Commits
7f6e174f
Unverified
Commit
7f6e174f
authored
Feb 15, 2019
by
Caleb Maclennan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable live sync to output dir for CI runs
parent
9479ea11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
makefile
makefile
+12
-0
No files found.
makefile
View file @
7f6e174f
...
...
@@ -116,12 +116,19 @@ ifdef FORMATS_$(TAGNAME)
FORMATS
:=
$
(
FORMATS_
$(TAGNAME)
)
endif
LIVESYNC
=
false
# Setup target dependencies to mimic stages of a CI pipeline
ifeq
($(MAKECMDGOALS),ci)
LIVESYNC
=
true
sync_pre
:
init debug
pdfs renderings promotionals
:
sync_pre
endif
ifneq
($(CI),)
LIVESYNC
=
true
endif
debug
:
debug_avadanlik
.PHONY
:
debug_avadanlik
...
...
@@ -220,6 +227,11 @@ sync_post: | $(require_pubdir) $(require_outputdir)
-name
"
$(PROJECT)
*"
\
-execdir
rsync
-ct
{
}
$(OUTPUTDIR)
/
\;
)
define
addtopub
?=
$(DRAFT)
&&
rm
-f
$(PUBDIR)/$@
||
ln
-f
$@
$(PUBDIR)/$@
$(and
$(LIVESYNC),$(OUTPUTDIR),$(foreach
TARGET,$(call
parse_bookid,$@),install
-Dt
$(OUTPUTDIR)/$(or
$(strip
$(filter-out
$(PROJECT),$(TARGET))),$(OUTPATH))
$@))
endef
.PHONY
:
website
website
:
curl
\
...
...
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