-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (38 loc) · 1.18 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
CXX = g++
cc = gcc
CXXFLAGS = -Wall -Wextra -Wunused -pedantic -O1
LIB = -lm
BIN = launch-meet
INCLUDE_PATH = ./src/include
BIN_PATH= bin
SRC_S = src/single
SRC_M = src/multiple
# Generates binary in launch-meet/bin folder
build: launch-meet_single
# Generates binary and install in .local/bin
install: launch-meet_single
mkdir -p "${HOME}/.local/bin"
@cp -v $(BIN_PATH)/launch-meet "${HOME}/.local/bin/"
chmod 776 "${HOME}/.local/bin/launch-meet"
# removes the program
uninstall:
@rm -v "${HOME}/.local/bin/launch-meet"
# removes the program and its configurations
purge:
@rm -v "${HOME}/.local/bin/launch-meet"
@rm -rvf "${HOME}/.local/share/launch-meet"
@rm -rvf "${HOME}/.cache/launch-meet"
@rm -rvf "${HOME}/.config/launch-meet"
rm_cache:
@rm -rvf "${HOME}/.cache/launch-meet"
reinstall: uninstall install
launch-meet_single: $(SRC_S)/launch-meet.cpp
$(CXX) $(CXXFLAGS) -o $(BIN_PATH)/launch-meet $^
# install_mutiple: launch-meet_multiple
# launch-meet_multiple: one.o two.o
# $(CXX) $(CXXFLAGS) -o $@ $^
# one.o: launch-meet.cpp
# $(CXX) $(CXXFLAGS) -o $@ -c $^
# two.o: launch-meet.cpp
# $(CXX) $(CXXFLAGS) -o $@ -c $^
.PHONY: all install uninstall reinstall build rm_cache