-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (31 loc) · 1.03 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
CC = g++
CFLAGS = -std=c++17 -g
TARGET = dracula
INCLUDE = include/
THEMES = include/themes/
CONFIG = ~/.config/helix/
DESTDIR = ~/.config/helix/themes/
copy: $(TARGET)
@echo
@echo ----------------------------------------------------
@echo Creating $(TARGET)-htg.toml
@echo ----------------------------------------------------
./$(TARGET) > $(TARGET)-htg.toml
@echo
@echo ----------------------------------------------------
@echo Copying $(TARGET)-htg.toml to your $(DESTDIR)
@echo ----------------------------------------------------
cp $(TARGET)-htg.toml $(DESTDIR)$(TARGET)-htg.toml
@echo
@echo ====================================================
@echo Now add theme=$(TARGET)-htg to your config.toml in $(CONFIG)
@echo ====================================================
$(TARGET): obj/$(TARGET).o
$(CC) obj/$(TARGET).o -o $(TARGET)
obj/$(TARGET).o: objs $(TARGET).cpp
$(CC) -c $(TARGET).cpp $(CFLAGS) -I $(INCLUDE) -I $(THEMES) -o obj/$(TARGET).o
objs:
mkdir -p obj
.PHONY: clean
clean:
rm -dr obj