File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed
Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 1+ INC_FLAGS := ` pkg-config --cflags gtksourceview-4 `
2+
3+ ifeq ($(RELEASE ) ,yes)
4+ CFLAGS := -c -O3
5+ else
6+ CFLAGS := -c -g
7+ endif
8+
9+ ifeq ($(PREFIX ) ,)
10+ PREFIX := /usr
11+ endif
12+
113notes : commands.o menu.o main.o
2- cc main.o -g ` pkg-config --libs gtksourceview-4` commands.o menu.o -o notes
14+ gcc main.o ` pkg-config --libs gtksourceview-4` commands.o menu.o -o notes
315main.o : main.c
4- cc main.c -c ` pkg-config --cflags gtksourceview-4 `
16+ cc main.c $( CFLAGS ) $( INC_FLAGS )
517commands.o : commands.c
6- cc commands.c -c ` pkg-config --cflags gtksourceview-4 ` -Wno-deprecated-declarations
18+ cc commands.c $( CFLAGS ) $( INC_FLAGS ) -Wno-deprecated-declarations
719menu.o : menu.c
8- cc menu.c -c ` pkg-config --cflags gtksourceview-4 `
20+ cc menu.c $( CFLAGS ) $( INC_FLAGS )
921
1022clean :
1123 rm * .o
1224
13- appimage : commands.o menu.o main.o
25+ install : notes
26+ strip notes
27+ install -d $(PREFIX ) /bin/
28+ install notes $(PREFIX ) /bin/
29+ install -d $(PREFIX ) /share/pixmaps/
30+ install assets/notes.png $(PREFIX ) /share/pixmaps/
31+ install -d $(PREFIX ) /share/applications/
32+ install release/notes.desktop $(PREFIX ) /share/applications/
33+
34+ appimage : notes
1435 cc -O3 release/AppRun.c -o release/AppRun
15- cc -O3 main.o ` pkg-config --libs gtksourceview-4` commands.o menu.o -o notes
1636 strip release/AppRun
1737 strip notes
1838 mkdir -p release/usr/lib
Original file line number Diff line number Diff line change 1- Notes .png
1+ notes .png
You can’t perform that action at this time.
0 commit comments