-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
129 lines (116 loc) · 2.54 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
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
122
123
124
125
126
127
128
129
include config.mk
HDR = xmpl.h xcmd.h xclm.h
SRC = \
window-get.c \
window-set.c \
window-command.c \
window-class.c \
window-name.c \
window-rename.c \
window-nudge.c \
window-move.c \
window-morph.c \
window-warp.c \
window-grow.c \
window-shrink.c \
window-resize.c \
window-show.c \
window-hide.c \
window-toggle.c \
window-border.c \
window-background.c \
window-manage.c \
window-ignore.c \
window-raise.c \
window-lower.c \
window-reparent.c \
window-size.c \
window-position.c \
window-geometry.c \
window-parent.c \
window-type.c \
window-stick.c \
window-unstick.c \
window-pin-above.c \
window-pin-below.c \
window-unpin.c \
window-shade.c \
window-unshade.c \
window-fullscreen.c \
window-maximize.c \
window-maximize-vertical.c \
window-maximize-horizontal.c \
window-restore.c \
window-taskbar-exclude.c \
window-taskbar-include.c \
window-pager-exclude.c \
window-pager-include.c \
window-alert.c \
window-focus.c \
window-kill.c \
window-list-ignored.c \
window-list-managed.c \
window-list-visible.c \
window-list-hidden.c \
window-list-children.c \
window-list-parents.c \
window-list-class.c \
window-list-command.c \
window-list-type.c \
window-is-ignored.c \
window-is-managed.c \
window-is-hidden.c \
window-is-visible.c \
window-is-class.c \
window-is-command.c \
window-is-type.c \
window-is-valid.c \
window-is-bordered.c \
window-is-focussed.c \
window-is-parent.c \
window-root.c \
window-current.c \
window-new.c \
pointer-center.c \
pointer-move.c \
pointer-nudge.c \
pointer-position.c \
event-watch.c \
event-trigger.c \
event-test.c
OBJ = $(SRC:.c=.o)
BIN = $(SRC:.c=)
MAN = $(SRC:.c=.1.gz)
.POSIX:
.SUFFIXES: .1 .1.gz
all: binutils
binutils: $(BIN)
manpages:
cd man; $(MAKE) $(MFLAGS)
$(OBJ): $(HDR) xmpl.o
.o:
@echo "LD $@"
@$(LD) $< xmpl.o -o $@ $(LDFLAGS)
@echo "ST $@"
# @$(ST) $(STFLAGS) $@
.c.o:
@echo "CC $<"
@$(CC) -c $< -o $@ $(CFLAGS)
install: $(BIN)
mkdir -p $(DESTDIR)$(PREFIX)/share/xmpl/
cp -f $(BIN) $(DESTDIR)$(PREFIX)/share/xmpl/
cp -rf events $(DESTDIR)$(PREFIX)/share/xmpl/
cp -f elegacy-session $(DESTDIR)$(PREFIX)/share/xmpl/
cp -f elegacy.desktop $(DESTDIR)$(PREFIX)/share/xsessions/
uninstall:
@echo "uninstalling binaries"
@for util in $(BIN); do \
rm -f $(DESTDIR)$(PREFIX)/share/xmpl/$$util; \
done
rm -rf $(DESTDIR)$(PREFIX)/share/xmpl/events
rm -f $(DESTDIR)$(PREFIX)/share/xmpl/elegacy-session
rm -f $(DESTDIR)$(PREFIX)/share/xsessions/elegacy.desktop
clean:
rm -f $(OBJ) $(BIN) xmpl.o
manclean:
cd man; $(MAKE) $(MFLAGS) clean