-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
144 lines (118 loc) · 4.34 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
################################################################################
# GNU make should only be needed in maintainer mode now
################################################################################
# Please run 'configure' first (generate it with autogen.sh)
################################################################################
srcdir = @srcdir@
top_srcdir = @top_srcdir@
PACKAGE = @PACKAGE@
VERSION = @VERSION@
PREFIX = @PREFIX@
BINDIR = @BINDIR@
LIBDIR = @LIBDIR@
CFGDIR = @CFGDIR@
LOCDIR = @LOCDIR@
KDEDIR = @KDEDIR@
DOCDIR = @DOCDIR@
MANDIR = @MANDIR@
EXEEXT = @EXEEXT@
INSTALL = @INSTALL@
INSTALLDIR = @INSTALLDIR@
INSTALLBIN = @INSTALLBIN@
INSTALLLIB = @INSTALLLIB@
INSTALLETC = @INSTALLETC@
INSTALLMAN = @INSTALLMAN@
MKFONTDIR = @MKFONTDIR@
DESTDIR =
################################################################################
BINFILES = @BINFILES@ icewm-set-gnomewm
LIBFILES = lib/preferences lib/winoptions lib/keys \
lib/menu lib/toolbar # lib/programs
DOCFILES = README BUGS CHANGES COPYING AUTHORS INSTALL VERSION icewm.lsm
MANFILES = icewm.1
XPMDIRS = icons ledclock taskbar mailbox cursors
THEMES = nice motif win95 warp3 warp4 metal2 gtk2 Infadel2 nice2 \
icedesert yellowmotif
all: @TARGETS@
install: @TARGETS_INSTALL@
base icesound icehelp:
@cd src; $(MAKE) $@
docs:
@cd doc; $(MAKE) all
nls:
@cd po; $(MAKE) all
srcclean:
@cd src; $(MAKE) clean
clean: srcclean
@cd doc; $(MAKE) clean
distclean: clean
rm -f *~ config.cache config.log config.status install.inc \
sysdep.inc src/config.h \
lib/preferences \
lib/menu lib/programs lib/keys lib/winoptions lib/toolbar
maintainer-clean: distclean
rm -f icewm.spec icewm.lsm Makefile configure src/config.h.in
@cd doc; $(MAKE) maintainer-clean
check:
@cd src ; $(MAKE) check >/dev/null
dist: distclean docs configure
# Makefile TABS *SUCK*
install-base: base
@echo ------------------------------------------
@echo "Installing binaries in $(DESTDIR)$(BINDIR)"
@$(INSTALLDIR) "$(DESTDIR)$(BINDIR)"
@for bin in $(BINFILES); do \
$(INSTALLBIN) "$${bin}" "$(DESTDIR)$(BINDIR)"; \
done
@echo "Installing presets and icons in $(DESTDIR)$(LIBDIR)"
@$(INSTALLDIR) "$(DESTDIR)$(LIBDIR)"
#-@$(INSTALLDIR) "$(DESTDIR)$(CFGDIR)"
@for lib in $(LIBFILES); do \
$(INSTALLLIB) "$${lib}" "$(DESTDIR)$(LIBDIR)"; \
done
@for xpmdir in $(XPMDIRS); do \
if test -d "lib/$${xpmdir}"; then \
$(INSTALLDIR) "$(DESTDIR)$(LIBDIR)/$${xpmdir}"; \
for pixmap in "lib/$${xpmdir}/"*.xpm; do \
$(INSTALLLIB) "$${pixmap}" "$(DESTDIR)$(LIBDIR)/$${xpmdir}"; \
done; \
fi; \
done
@echo ------------------------------------------
@for theme in $(THEMES); do \
SRCDIR="$(top_srcdir)" \
DESTDIR="$(DESTDIR)" \
LIBDIR="$(LIBDIR)" \
XPMDIRS="$(XPMDIRS)" \
INSTALLDIR="$(INSTALLDIR)" \
INSTALLLIB="$(INSTALLLIB)" \
MKFONTDIR="$(MKFONTDIR)" \
$(top_srcdir)/utils/install-theme.sh "$${theme}"; \
done
@#for a in $(ETCFILES) ; do $(INSTALLETC) "$$a" $(CFGDIR) ; done
@echo ------------------------------------------
install-docs: docs
@echo ------------------------------------------
@rm -fr "$(DESTDIR)$(DOCDIR)/icewm-$(VERSION)"
@$(INSTALLDIR) "$(DESTDIR)$(DOCDIR)/icewm-$(VERSION)"
@echo "Installing documentation in $(DESTDIR)$(DOCDIR)"
@$(INSTALLLIB) $(DOCFILES) "$(DESTDIR)$(DOCDIR)/icewm-$(VERSION)"
@$(INSTALLLIB) "$(top_srcdir)/doc/"*.sgml "$(DESTDIR)$(DOCDIR)/icewm-$(VERSION)"
@$(INSTALLLIB) "$(top_srcdir)/doc/"*.html "$(DESTDIR)$(DOCDIR)/icewm-$(VERSION)"
@echo ------------------------------------------
install-nls: nls
@echo ------------------------------------------
@cd po; $(MAKE) install
@echo ------------------------------------------
install-man:
@$(INSTALLDIR) "$(DESTDIR)$(MANDIR)/man1"
@for man in $(MANFILES); do \
$(INSTALLMAN) doc/$$man.man $(DESTDIR)$(MANDIR)/man1/$$man; \
done
install-desktop:
@echo ------------------------------------------
@$(INSTALLDIR) "$(DESTDIR)/usr/share/xsessions"
@$(INSTALLDIR) "$(DESTDIR)/usr/share/applications"
@$(INSTALLLIB) "$(top_srcdir)/lib/icewm-session.desktop" "$(DESTDIR)/usr/share/xsessions/icewm-session.desktop"
@$(INSTALLLIB) "$(top_srcdir)/lib/icewm.desktop" "$(DESTDIR)/usr/share/applications/icewm.desktop"
@echo ------------------------------------------