-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (50 loc) · 1.63 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
TARGET = webpage-ranking
# ANSI colors for shell output
BLACK := \033[0;30m
RED := \033[0;31m
GREEN := \033[0;32m
YELLOW := \033[0;33m
BLUE := \033[0;34m
PURPLE := \033[0;35m
CYAN := \033[0;36m
WHITE := \033[0;37m
NC := \033[0m # No Color
# ANSI colors for shell output (bold)
BBLACK := \033[1;30m
BRED := \033[1;31m
BGREEN := \033[1;32m
BYELLOW := \033[1;33m
BBLUE := \033[1;34m
BPURPLE := \033[1;35m
BCYAN := \033[1;36m
BWHITE := \033[1;37m
all:
@printf "%b" "$(BYELLOW)Building $(TARGET)...\n$(NC)"
pdflatex $(TARGET).tex
@printf "%b" "$(BYELLOW)Refreshing $(TARGET)...\n$(NC)"
pdflatex $(TARGET).tex
@printf "%b" "$(BGREEN)Done.\n$(NC)"
zathura $(TARGET).pdf
clean:
@printf "%b" "$(WHITE)Cleaning...\n$(NC)"
rm -rf $(shell find . -type f -name "*.aux")
rm -rf $(shell find . -type f -name "*.acn")
rm -rf $(shell find . -type f -name "*.bbl")
rm -rf $(shell find . -type f -name "*.bcf")
rm -rf $(shell find . -type f -name "*.blg")
rm -rf $(shell find . -type f -name "*.glo")
rm -rf $(shell find . -type f -name "*.ist")
rm -rf $(shell find . -type f -name "*.lof")
rm -rf $(shell find . -type f -name "*.log")
rm -rf $(shell find . -type f -name "*.lol")
rm -rf $(shell find . -type f -name "*.lot")
rm -rf $(shell find . -type f -name "*.out")
rm -rf $(shell find . -type f -name "*.run.xml")
rm -rf $(shell find . -type f -name "*.toc")
rm -rf $(shell find . -type f -name "*-blx.bib")
rm -rf $(shell find . -type f -name "*.acr")
rm -rf $(shell find . -type f -name "*.alg")
rm -rf $(shell find . -type f -name "*.glg")
rm -rf $(shell find . -type f -name "*.gls")
@printf "%b" "$(PURPLE)Cleaning Done.$(NC)\n"
.PHONY : all clean