Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
i4
TeX Vorlagen
neo
Commits
54db61db
Commit
54db61db
authored
Jul 01, 2018
by
Michael Eischer
Browse files
Fix makefile compat with macOS
The BSD /bin/echo doesn't know the option '-e'
parent
5c9b24ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
54db61db
...
...
@@ -42,13 +42,13 @@ $(CACHE_DIR):; @mkdir -p $(CACHE_DIR)
%_handout.pdf
:
%.tex $(wildcard *.bib) $(PACKAGE_TGT) $(CACHE_DIR)
@
cd
$(
dir
$<
)
&&
$(COMPILE_TEX)
-jobname
=
$*
_handout
$(
notdir
$<
)
@
cp
$(CACHE_DIR)
/
$(
notdir
$@
)
$@
@
test
!
-f
$@
pc
-a
-f
$(CACHE_DIR)
/
$(
notdir
$@
)
pc
&&
(
/bin/echo
-e
"[file]
\n
$@
\n
[font_size]
\n
$(PDFPC_SIZE)
"
;
cat
$(CACHE_DIR)
/
$(
notdir
$@
)
pc |
sed
's/\\\\/\n/g'
|
sed
's/\\par/\n\n/g'
)
>
$@
pc
||
echo
"ignoring PDFPC file"
&&
exit
0
@
test
!
-f
$@
pc
-a
-f
$(CACHE_DIR)
/
$(
notdir
$@
)
pc
&&
(
/bin/echo
"[file]
"
;
/bin/echo
"
$@
"
;
/bin/echo
"[font_size]"
;
/bin/echo
"
$(PDFPC_SIZE)
"
;
cat
$(CACHE_DIR)
/
$(
notdir
$@
)
pc |
sed
's/\\\\/\n/g'
|
sed
's/\\par/\n\n/g'
)
>
$@
pc
||
echo
"ignoring PDFPC file"
&&
exit
0
%.pdf
:
%.tex $(wildcard *.bib) $(PACKAGE_TGT) $(CACHE_DIR)
@
cd
$(
dir
$<
)
&&
$(COMPILE_TEX)
$(
notdir
$<
)
@
cp
$(CACHE_DIR)
/
$(
notdir
$@
)
$@
@
test
!
-f
$@
pc
-a
-f
$(CACHE_DIR)
/
$(
notdir
$@
)
pc
&&
(
/bin/echo
-e
"[file]
\n
$@
\n
[font_size]
\n
$(PDFPC_SIZE)
"
;
cat
$(CACHE_DIR)
/
$(
notdir
$@
)
pc |
sed
's/\\\\/\n/g'
|
sed
's/\\par/\n\n/g'
)
>
$@
pc
||
echo
"ignoring PDFPC file"
&&
exit
0
@
test
!
-f
$@
pc
-a
-f
$(CACHE_DIR)
/
$(
notdir
$@
)
pc
&&
(
/bin/echo
"[file]
"
;
/bin/echo
"
$@
"
;
/bin/echo
"[font_size]"
;
/bin/echo
"
$(PDFPC_SIZE)
"
;
cat
$(CACHE_DIR)
/
$(
notdir
$@
)
pc |
sed
's/\\\\/\n/g'
|
sed
's/\\par/\n\n/g'
)
>
$@
pc
||
echo
"ignoring PDFPC file"
&&
exit
0
preview-%
:
%.tex $(wildcard *.bib) $(PACKAGE_TGT) $(CACHE_DIR)
@
cd
$(
dir
$<
)
&&
$(COMPILE_TEX)
$(
notdir
$<
)
-pvc
-interaction
=
nonstopmode
-view
=
pdf
...
...
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