-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
83 lines (67 loc) · 2.83 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
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
include src/config.mk
ifeq ($(LDFLAGS),)
LDFLAGS = -Wl,--as-needed
endif
ifeq ($(LDLIBS),)
LDLIBS = -L/usr/local/lib $(LIBS_VTE_L) -lglib-2.0 -lgobject-2.0 $(LIBS_VTE)
endif
CFLAGS += $(OPTFLAGS) $(VTEINC)
evilvte: src/evilvte.o
$(CC) $(LDFLAGS) src/evilvte.o $(LDLIBS) -o src/$(PROG)
src/evilvte.o: src/evilvte.h
prepare:
rm -f src/custom.h src/evilvte.h src/evilvte.o
src/custom.h: prepare $(CONF_FILE)
(echo '/* This file is generated - please edit $(CONF_FILE) instead */'; \
grep -v '^ *//' $(CONF_FILE) \
| sed 's/ CTRL_ALT / CTRL_ALT_FOO /g') > src/custom.h
src/evilvte.h: src/custom.h
sh src/process.sh src/$(PROG)
strip: evilvte
strip --remove-section=.comment --remove-section=.note src/$(PROG)
install:
install -d $(bindir)
install -m 755 src/$(PROG) src/showvte $(bindir)
install -d $(ICON_DIR_INSTALL)
install -m 644 misc/48.png $(ICON_DIR_INSTALL)/evilvte.png
install -d $(THEME_DIR)/hicolor/16x16/apps
install -m 644 misc/16.png $(THEME_DIR)/hicolor/16x16/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/20x20/apps
install -m 644 misc/20.png $(THEME_DIR)/hicolor/20x20/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/22x22/apps
install -m 644 misc/22.png $(THEME_DIR)/hicolor/22x22/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/24x24/apps
install -m 644 misc/24.png $(THEME_DIR)/hicolor/24x24/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/32x32/apps
install -m 644 misc/32.png $(THEME_DIR)/hicolor/32x32/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/36x36/apps
install -m 644 misc/36.png $(THEME_DIR)/hicolor/36x36/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/40x40/apps
install -m 644 misc/40.png $(THEME_DIR)/hicolor/40x40/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/48x48/apps
install -m 644 misc/48.png $(THEME_DIR)/hicolor/48x48/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/64x64/apps
install -m 644 misc/64.png $(THEME_DIR)/hicolor/64x64/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/72x72/apps
install -m 644 misc/72.png $(THEME_DIR)/hicolor/72x72/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/96x96/apps
install -m 644 misc/96.png $(THEME_DIR)/hicolor/96x96/apps/evilvte.png
install -d $(THEME_DIR)/hicolor/scalable/apps
install -m 644 misc/evilvte.svg $(THEME_DIR)/hicolor/scalable/apps
install -d $(mandir)
install -m 644 misc/evilvte.1 misc/showvte.1 $(mandir)
install -d $(deskdir)
install -m 644 misc/evilvte.desktop $(deskdir)
install -d $(GNOME_DEF_APP)
install -m 644 misc/evilvte.xml $(GNOME_DEF_APP)
install-strip: strip
sh src/install.sh
uninstall:
sh src/uninstall.sh
clean: src/config.mk
rm -f src/$(PROG) src/showvte src/evilvte.o src/evilvte.h misc/evilvte.? src/custom.h
distclean: clean
rm -f src/evilvte.c src/*.o src/*.mk src/install.sh src/uninstall.sh
src/config.mk:
./configure --quiet
.PHONY: evilvte prepare strip install install-strip uninstall clean distclean