-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
121 lines (87 loc) · 3.29 KB
/
Makefile.in
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
CC = @CC@
RM = rm -f
SCHEMAGEN = glib-compile-schemas
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
datarootdir = @datarootdir@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_LFLAGS = @GTK_LIBS@
AYATANA_CFLAGS = @AYATANA_CFLAGS@
AYATANA_LFLAGS = @AYATANA_LIBS@
XCB_CFLAGS = @XCB_CFLAGS@
XCB_LFLAGS = @XCB_LIBS@
XCB_RANDR_CFLAGS = @XCB_RANDR_CFLAGS@
XCB_RANDR_LFLAGS = @XCB_RANDR_LIBS@
CFLAGS = $(XCB_CFLAGS) $(XCB_RANDR_CFLAGS) -Wall
LFLAGS = $(XCB_LFLAGS) $(XCB_RANDR_LFLAGS)
INDICATOR_CFLAGS = $(CFLAGS) $(GTK_CFLAGS) $(AYATANA_CFLAGS) -I.
INDICATOR_LFLAGS = $(LFLAGS) $(GTK_LFLAGS) $(AYATANA_LFLAGS)
# GtkStatusIcon is deprecated in Gtk-3.0
INDICATOR_CFLAGS += -Wno-deprecated-declarations
ZORA_OBJECTS = zora/zora.o zora/randr.o zora/colourramp.o
INDICATOR_OBJECTS = zora/randr.o zora/colourramp.o indicator/zora-main.o \
indicator/zora-application.o indicator/zora-indicator.o \
indicator/zora-control.o indicator/zora-dock.o
AUX_FILES = \
Makefile configure configure.scan autom4te.cache autoscan.log \
aclocal.m4 config.log config.status config.guess config.sub \
config.h config.h.in config.h.in~ install-sh
all: zora/zora indicator/zora-indicator data/gschemas.compiled \
data/zora.desktop zora/zora.1.gz
run: all
GSETTINGS_SCHEMA_DIR=data indicator/zora-indicator
include $(wildcard */*.d)
zora/zora: $(ZORA_OBJECTS)
$(QUIET_CC) $(CC) $^ -o $@ $(LFLAGS)
%.o: %.c
$(QUIET_CC) $(CC) -MMD -MP -c $< -o $@ $(CFLAGS)
indicator/zora-indicator: $(INDICATOR_OBJECTS)
$(QUIET_CC) $(CC) $^ -o $@ $(INDICATOR_LFLAGS)
indicator/%.o: indicator/%.c
$(QUIET_CC) $(CC) -MMD -MP -c $< -o $@ $(INDICATOR_CFLAGS)
data/zora.desktop: data/zora.desktop.in
$(QUIET_GEN) cat $< >$@; chmod +x $@
data/gschemas.compiled: data/com.vlastavesely.zora.gschema.xml
$(QUIET_GEN) $(SCHEMAGEN) data
%.1.gz: %.1
$(QUIET_GEN) cat $< | gzip -f >$@
install-zora:
mkdir -p $(bindir) $(mandir)/man1
$(INSTALL_PROGRAM) zora/zora $(bindir)
$(INSTALL_DATA) zora/zora.1.gz $(mandir)/man1
install-indicator:
mkdir -p $(bindir)
mkdir -p $(datarootdir)/applications $(datarootdir)/glib-2.0/schemas
mkdir -p $(datarootdir)/icons
$(INSTALL_PROGRAM) indicator/zora-indicator $(bindir)
$(INSTALL_PROGRAM) data/zora.desktop $(datarootdir)/applications
$(INSTALL_DATA) data/com.vlastavesely.zora.gschema.xml $(datarootdir)/glib-2.0/schemas
cp -r data/hicolor -T $(datarootdir)/icons/hicolor
uninstall-zora:
$(RM) $(bindir)/zora $(mandir)/man1/zora.1.gz
uninstall-indicator:
$(RM) $(bindir)/zora-indicator
$(RM) $(datarootdir)/applications/zora.desktop
$(RM) $(datarootdir)/icons/hicolor/scalable/apps/zora*.svg
$(RM) $(datarootdir)/glib-2.0/schemas/com.vlastavesely.zora.gschema.xml
regenerate-icon-cache:
gtk-update-icon-cache $(datarootdir)/icons/hicolor
install: install-zora install-indicator regenerate-icon-cache
uninstall: uninstall-zora uninstall-indicator regenerate-icon-cache
clean:
$(RM) zora/zora indicator/zora-indicator */*.o */*.d
$(RM) zora/zora.1.gz
$(RM) data/*.compiled data/*.desktop
clean-aux:
$(RM) -r $(AUX_FILES)
distclean: clean clean-aux
ifndef V
QUIET_CC = @echo " CC $@";
QUIET_LD = @echo " CCLD $@";
QUIET_GEN = @echo " GEN $@";
endif