[go: up one dir, main page]

Menu

[e0151d]: / Makefile.in  Maximize  Restore  History

Download this file

151 lines (127 with data), 5.0 kB

  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
################################################################################
# GNU Make is required for this makefile
################################################################################
# Please run 'configure' first (generate it with autogen.sh)
################################################################################
include ./VERSION
-include ./install.inc
################################################################################
BINFILES = $(foreach APP,$(APPLICATIONS),src/$(APP))
LIBFILES = lib/preferences lib/menu lib/toolbar lib/winoptions lib/keys
DOCFILES = README TODO CHANGES COPYING AUTHORS FAQ INSTALL VERSION icewm.lsm
XPMDIRS = icons ledclock taskbar mailbox cursors
THEMES = nice motif win95 warp3 warp4 metal2 gtk2 Infadel2
SPEC = icewm.spec
LSM = icewm.lsm
GNOMEFILES = lib/IceWM.desktop
WMPROPDIR = $(shell gnome-config --datadir)/gnome/wm-properties/
all: @TARGETS@
install: @TARGETS_INSTALL@
depend base icesound icehelp:
@$(MAKE) -C src $@ LIBDIR=$(LIBDIR) CFGDIR=$(CFGDIR)
docs:
@$(MAKE) -C doc all
nls:
@$(MAKE) -C po all
gnome:
srcclean:
@$(MAKE) -C src clean
clean: srcclean
@$(MAKE) -C doc clean
distclean: clean
rm -f *~ config.cache config.log config.status install.inc \
sysdep.inc src/config.h lib/preferences
maintainer-clean: distclean
rm -f $(SPEC) $(LSM) Makefile configure src/config.h.in
@$(MAKE) -C doc maintainer-clean
dist: $(SPEC) $(LSM) distclean docs depend configure
configure: configure.in
aclocal
autoconf
autoheader
$(SPEC): $(SPEC).in VERSION
sed <$< >$@ \
-e "s|@@VERSION@@|$(VERSION)|g" \
-e "s|@@RELEASE@@|$(RELEASE)|g"
$(LSM): $(LSM).in VERSION
sed <$< >$@ \
-e "s|@@VERSION@@|$(VERSION)|g" \
-e "s|@@DATE@@|`date +%d%b%Y | tr 'a-z' 'A-Z'`|"
# Makefile TABS *SUCK*
install-base: base
@echo ------------------------------------------
@echo "Installing binaries in $(BINDIR)"
@$(INSTALLDIR) $(BINDIR)
@for app in $(BINFILES) ; do \
$(INSTALLBIN) "$$app" $(BINDIR); \
done
@echo "Installing defaults, icons and themes in $(LIBDIR)"
@$(INSTALLDIR) $(LIBDIR)
@$(INSTALLDIR) $(CFGDIR)
@for lib in $(LIBFILES) ; do \
$(INSTALLLIB) "$$lib" $(LIBDIR); \
done
@for xpmdir in $(XPMDIRS); do \
if test -d lib/$$xpmdir; then \
$(INSTALLDIR) $(LIBDIR)/$$xpmdir; \
for pixmap in lib/$$xpmdir/*.xpm ; do \
$(INSTALLLIB) "$$pixmap" $(LIBDIR)/$$xpmdir; \
done; \
fi; \
done
@echo ------------------------------------------
@for theme in $(THEMES) ; do \
echo "Installing theme: $$theme"; \
$(INSTALLDIR) $(LIBDIR)/themes/$$theme; \
for pixmap in lib/themes/$$theme/*.xpm; do \
$(INSTALLLIB) "$$pixmap" $(LIBDIR)/themes/$$theme; \
done; \
for subtheme in lib/themes/$$theme/*.theme; do \
$(INSTALLLIB) "$$subtheme" $(LIBDIR)/themes/$$theme; \
done; \
if test -f lib/themes/$$theme/*.pcf; then \
for fontfile in lib/themes/$$theme/*.pcf; do \
$(INSTALLLIB) "$$fontfile" $(LIBDIR)/themes/$$theme; \
done; \
if test -x "$(MKFONTDIR)"; then \
cwd=$$PWD; cd "$(LIBDIR)/themes/$$theme"; \
$(MKFONTDIR); \
cd $$cwd; \
else \
echo "WARNING: A dummy file has been copied to"; \
echo " $(LIBDIR)/themes/$$theme/fonts.dir"; \
echo " You better setup your path to point to mkfontdir or use the"; \
echo " --with-mkfontdir option of the configure script."; \
$(INSTALLLIB) "lib/themes/$$theme/fonts.dir.default" \
"$(LIBDIR)/themes/$$theme/fonts.dir"; \
fi; \
fi; \
for xpmdir in $(XPMDIRS) ; do \
if [ -d lib/themes/$$theme/$$xpmdir ] ; then \
$(INSTALLDIR) $(LIBDIR)/themes/$$theme/$$xpmdir; \
for f in lib/themes/$$theme/$$xpmdir/*.xpm ; do \
$(INSTALLLIB) "$$f" $(LIBDIR)/themes/$$theme/$$xpmdir; \
done;\
fi;\
done;\
done
@#for a in $(ETCFILES) ; do $(INSTALLETC) "$$a" $(CFGDIR) ; done
@echo ------------------------------------------
install-docs: docs $(LSM)
@echo ------------------------------------------
@rm -fr $(DOCDIR)/icewm-$(VERSION)
@$(INSTALLDIR) $(DOCDIR)/icewm-$(VERSION)
@echo Installing documentation in $(DOCDIR); \
cp $(DOCFILES) $(DOCDIR)/icewm-$(VERSION); \
cp -r doc/*.sgml doc/*.html $(DOCDIR)/icewm-$(VERSION)
@echo ------------------------------------------
install-nls: nls
@echo ------------------------------------------
@$(MAKE) -C po install
@echo ------------------------------------------
install-gnome: gnome
@echo ------------------------------------------
@echo Installing icewm-gnome in $(WMPROPDIR)
@$(INSTALLDIR) $(WMPROPDIR)
@$(INSTALLLIB) lib/IceWM.desktop $(WMPROPDIR)
@echo ------------------------------------------