forked from michaliskambi/modern-pascal-introduction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (24 loc) · 852 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
NAME:=modern_pascal_introduction
ALL_OUTPUT:=$(NAME).html $(NAME).pdf $(NAME).xml
all: $(ALL_OUTPUT)
$(NAME).html: $(NAME).adoc
asciidoctor $< -o $@
firefox $@
$(NAME).xml: $(NAME).adoc
asciidoctor -b docbook5 $< -o $@
# yelp $@
$(NAME).pdf: $(NAME).xml
fopub $(NAME).xml
# $(NAME).pdf: $(NAME).adoc
# asciidoctor-pdf $(NAME).adoc
.PHONY: clean
clean:
rm -f $(ALL_OUTPUT)
.PHONY: test
test:
$(MAKE) -C code-samples/ clean all
.PHONY: upload
upload: test clean all
scp modern_pascal_introduction.html modern_pascal_introduction.pdf [email protected]:/home/michalis/public_html/modern_pascal_introduction/
firefox http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_introduction/modern_pascal_introduction.html
firefox http://michalis.ii.uni.wroc.pl/~michalis/modern_pascal_introduction/modern_pascal_introduction.pdf