forked from sashavasko/afterstep-devel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
178 lines (144 loc) · 5.82 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
@MAKEFILEDEFINES@
confsdirs= autoconf libAfterBase libAfterImage
####
libdirs = libAfterBase libAfterImage libAfterStep libAfterConf @LIBASGTKDIR@
gtk_app_dirs = src/tools/ASFileBrowser src/tools/ASWallpaper
no_gtk_app_dirs =
glib_app_dirs = src/ASMount
no_glib_app_dirs =
subdirs = libAfterBase libAfterImage libAfterStep libAfterConf @LIBASGTKDIR@ \
src/afterstep \
src/Animate \
src/Arrange \
src/Banner \
src/Ident \
src/Pager \
src/Wharf \
src/WinCommand \
src/WinList2 \
src/WinTabs \
src/ascp \
src/tools/ASRun \
afterstep \
src/ASDocGen \
$(@GLIB_APP_DIRS@) \
$(@GTK_APP_DIRS@) \
doc tools
RECURSIVE_TARGETS = all libs install install.bin install.lib install.man install.script uninstall clean distclean indent deps
all: AfterStep.desktop.final
libs: AfterStep.desktop.final
install: install.wmprops install.desktop mkdir
install.bin: mkdir.bin
install.lib: mkdir.lib
install.man: mkdir.man
install.script: mkdir.bin
clean: clean-local
distclean: distclean-local
indent: indent-local
deps: deps-local
clean-local:
$(RMF) AfterStep.desktop.final
distclean-local:
$(RMF) config.cache config.log config.status Makefile.bak Makefile config.h configure.h *.o *~ *% *.bak \#* core
indent-local:
@cd include; \
for i in *.h; do \
if (indent < $$i > /tmp/$$i); then \
echo indent $$i; \
mv /tmp/$$i $$i; \
fi; \
done
deps-local:
@for I in ${subdirs}; do if [ -d $$I ]; then touch $$I/.depend || exit 1; fi; done
install.wmprops:
@if [ -d $(SHAREDIR)/gnome/wm-properties ] ; then \
if [ -w $(SHAREDIR)/gnome/wm-properties ] ; then \
echo $(CP) AfterStep.desktop $(SHAREDIR)/gnome/wm-properties/; \
$(CP) AfterStep.desktop $(SHAREDIR)/gnome/wm-properties/; \
else \
echo "$(SHAREDIR)/gnome/wm-properties exists but is not writable."; \
echo "If you want AfterStep to appear in your Gnome menu, please install as root."; \
fi \
fi
@if [ -d $(GNOME_SHAREDIR)/wm-properties ] ; then \
if [ -w $(GNOME_SHAREDIR)/wm-properties ] ; then \
echo $(CP) AfterStep.desktop $(GNOME_SHAREDESTDIR)/wm-properties/; \
$(MKDIR) -p $(GNOME_SHAREDESTDIR)/wm-properties; \
$(CP) AfterStep.desktop $(GNOME_SHAREDESTDIR)/wm-properties/; \
else \
echo "$(GNOME_SHAREDIR)/wm-properties exists but is not writable."; \
echo "If you want AfterStep to appear in your Gnome menu, please install as root."; \
fi \
fi
$(RECURSIVE_TARGETS):
@fail= failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*) ;; \
*k*) failcom='fail=yes' ;; \
esac; \
done; \
for I in ${subdirs}; do \
(cd $$I; ${MAKE} $@) || eval $$failcom; \
done; \
test -z "$$fail"
AfterStep.desktop.final:
@$(CP) AfterStep.desktop AfterStep.desktop.final; \
echo "Exec=$(AFTER_BIN_DIR)/afterstep" >> AfterStep.desktop.final ; \
echo "Icon=$(AFTER_SHAREDIR)/desktop/icons/large/AfterStep3" >> AfterStep.desktop.final
mkdir: mkdir.bin mkdir.lib mkdir.man mkdir.share
mkdir.bin:
@$(MKDIR) -p $(AFTER_BIN_DIR);
mkdir.lib:
@$(MKDIR) -p $(LIBDIR);
mkdir.man:
@$(MKDIR) -p $(AFTER_MAN_DIR); $(MKDIR) -p $(AFTER_MAN_API_DIR);
mkdir.share:
@$(MKDIR) -p $(SHAREDIR); \
$(MKDIR) -p $(AFTER_SHAREDIR)
module.clean:
install.desktop: AfterStep.desktop.final mkdir.share
@if [ -d $(SYSCONFDIR)/X11/sessions ] && [ -w $(SYSCONFDIR)/X11/sessions ] ; then \
echo "installing AfterStep.desktop $(SYSCONFDIR)/X11/xsessions/" ; \
$(INSTALL_DATA) AfterStep.desktop.final $(SYSCONFDIR)/X11/xsessions/AfterStep.desktop ; \
fi; \
if [ -d $(SYSSHAREDIR)/xsessions ] && [ -w $(SYSSHAREDIR)/xsessions ] ; then \
echo "installing AfterStep.desktop into $(SYSSHAREDIR)/xsessions/" ; \
$(INSTALL_DATA) AfterStep.desktop.final $(SYSSHAREDIR)/xsessions/AfterStep.desktop ; \
else if [ -d $(SHAREDIR)/xsessions ] && [ -w $(SHAREDIR)/xsessions ] ; then \
echo "installing AfterStep.desktop into $(SHAREDIR)/xsessions/" ; \
$(INSTALL_DATA) AfterStep.desktop.final $(SHAREDIR)/xsessions/AfterStep.desktop ; \
else if [ -d $(SHAREDIR) ] && [ -w $(SHAREDIR) ] ; then \
echo "mkdir $(SHAREDIR)/xsessions"; \
$(MKDIR) -p $(SHAREDIR)/xsessions; \
echo "installing AfterStep.desktop into $(SHAREDIR)/xsessions/" ; \
$(INSTALL_DATA) AfterStep.desktop.final $(SHAREDIR)/xsessions/AfterStep.desktop ; \
fi; fi; fi
install.share:
@cd afterstep && ${MAKE} install
install.data:
@cd afterstep && ${MAKE} install.data
install.data_html:
@cd src/ASDocGen && ${MAKE} install.data_html
install.menu:
@cd afterstep && ${MAKE} install.menu
install.config:
@cd afterstep && ${MAKE} install.config
config:
@for I in ${confsdirs}; do \
(cd $$I ; autoconf configure.in > configure ; chmod 755 configure); \
done; \
cd autoconf ; \
autoconf configure.libs.in > configure.libs; chmod 755 configure.libs ; \
$(MV) configure.libs ../ ; \
$(MV) configure ../ ; \
cd ..
configclean:
$(RMF) ./config.status ./config.log ./include/config.h ./config.cache ./configure.h ; \
for I in ${confsdirs}; do \
$(RMF) $$I/config.status $$I/config.log $$I/config.h $$I/config.cache $$I/configure.h ; \
done; \
ChangeLog:
tools/cvs2cl.as.pl --hide-filenames --no-times
@(cd libAfterBase ; ../tools/cvs2cl.as.pl --hide-filenames --no-times); \
(cd libAfterImage ; ../tools/cvs2cl.as.pl --hide-filenames --no-times)