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
CCM
CCM Toolkit
Commits
599a10e2
Unverified
Commit
599a10e2
authored
Mar 11, 2019
by
Caleb Maclennan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to setup output syncing
parent
8efb2d3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
makefile
makefile
+19
-0
No files found.
makefile
View file @
599a10e2
...
...
@@ -33,6 +33,20 @@ urlinfo := https://ccm.izmirprotestan.org/
-include
$(CCMTOOLKITDIR)/makefile-$(LANGUAGE) $(CCMTOOLKITDIR)/makefile-$(LANGUAGE)-reversed
# CI runners need help getting the branch name because of funky checkouts
BRANCH
:=
$(
shell
git rev-parse
--abbrev-ref
HEAD
)
ifeq
($(BRANCH),HEAD)
ifeq
($(shell git rev-parse master),$(shell git rev-parse HEAD))
BRANCH
=
master
else
BRANCH
=
$(CI_BUILD_REF_NAME)
endif
endif
ifeq
($(BRANCH),master)
LIVESYNC
=
true
endif
# Work around GNU make defaulting to running the first rule defined
default
:
all
...
...
@@ -142,3 +156,8 @@ endif # End export mode rules
parse_lesson
=
$(
or
$(
filter
$(LESSONS)
,
$(
subst
-, ,
$(
basename
$1
)))
,
)
parse_lessonfilter
=
$(
or
$(
filter
$(LESSONFILTERS)
,
$(
call
unlocalize,
$(
subst
-, ,
$(
basename
$1
))))
,
)
lang4
=
$(
shell
echo
-n
$1
-
$
${
$
${
lang
=
$1
}
:u
}
)
define
addtopub
?=
$(DRAFT)
&&
rm
-f
$(PUBDIR)/$@
||
ln
-f
$@
$(PUBDIR)/$@
$(and
$(LIVESYNC),$(OUTPUTDIR),$(DRAFT)
||
install
-Dt
$(OUTPUTDIR)/$(LANGUAGE)/$(PROJECT)/
$@)
endef
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