-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
30 lines (24 loc) · 680 Bytes
/
makefile
File metadata and controls
30 lines (24 loc) · 680 Bytes
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
CC = gcc
CFLAGS = -Wall -Wextra
LIBS = -lncurses
TARGET = fastproc
DESKTOP_FILE = fastproc.desktop
DESKTOP_PATH = /usr/share/applications
all: $(TARGET)
$(TARGET): fastproc.c
$(CC) $(CFLAGS) fastproc.c -o $(TARGET) $(LIBS)
install-desktop:
cp $(DESKTOP_FILE) $(DESKTOP_PATH)/
update-desktop-database
install:
cp $(TARGET) /usr/local/bin
cp $(DESKTOP_FILE) $(DESKTOP_PATH)/
update-desktop-database
clean:
rm -f $(TARGET)
help:
@echo "Uso:"
@echo " make : Compila o programa"
@echo " sudo make install : Instala o programa com o .desktop"
@echo " sudo make install-all : Instala o app + ícone no menu"
@echo " make clean : Remove o executável"