c3db0611ec
ok naddy@
99 lines
4.4 KiB
Plaintext
99 lines
4.4 KiB
Plaintext
$OpenBSD: patch-Makefile_in,v 1.3 2003/08/30 07:16:35 sturm Exp $
|
|
# 1. Don't install some doc files
|
|
# 2. Make sure that fake works correctly
|
|
--- Makefile.in.orig 2001-10-09 16:53:40.000000000 +0200
|
|
+++ Makefile.in 2003-08-30 00:15:07.000000000 +0200
|
|
@@ -11,7 +11,7 @@ include ./VERSION
|
|
|
|
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
|
|
+DOCFILES = README COPYING FAQ
|
|
XPMDIRS = icons ledclock taskbar mailbox cursors
|
|
THEMES = nice motif win95 warp3 warp4 metal2 gtk2 Infadel2
|
|
SPEC = icewm.spec
|
|
@@ -75,66 +75,63 @@ install-base: base
|
|
@for app in $(BINFILES) ; do \
|
|
$(INSTALLBIN) "$$app" $(BINDIR); \
|
|
done
|
|
- @echo "Installing defaults, icons and themes in $(LIBDIR)"
|
|
- @$(INSTALLDIR) $(LIBDIR)
|
|
- @$(INSTALLDIR) $(CFGDIR)
|
|
+ @echo "Installing defaults, icons and themes in $(DESTDIR)$(LIBDIR)"
|
|
+ @$(INSTALLDIR) $(DESTDIR)$(LIBDIR)
|
|
@for lib in $(LIBFILES) ; do \
|
|
- $(INSTALLLIB) "$$lib" $(LIBDIR); \
|
|
+ $(INSTALLLIB) "$$lib" $(DESTDIR)$(LIBDIR); \
|
|
done
|
|
@for xpmdir in $(XPMDIRS); do \
|
|
if test -d lib/$$xpmdir; then \
|
|
- $(INSTALLDIR) $(LIBDIR)/$$xpmdir; \
|
|
+ $(INSTALLDIR) $(DESTDIR)$(LIBDIR)/$$xpmdir; \
|
|
for pixmap in lib/$$xpmdir/*.xpm ; do \
|
|
- $(INSTALLLIB) "$$pixmap" $(LIBDIR)/$$xpmdir; \
|
|
+ $(INSTALLLIB) "$$pixmap" $(DESTDIR)$(LIBDIR)/$$xpmdir; \
|
|
done; \
|
|
fi; \
|
|
done
|
|
@echo ------------------------------------------
|
|
@for theme in $(THEMES) ; do \
|
|
echo "Installing theme: $$theme"; \
|
|
- $(INSTALLDIR) $(LIBDIR)/themes/$$theme; \
|
|
+ $(INSTALLDIR) $(DESTDIR)$(LIBDIR)/themes/$$theme; \
|
|
for pixmap in lib/themes/$$theme/*.xpm; do \
|
|
- $(INSTALLLIB) "$$pixmap" $(LIBDIR)/themes/$$theme; \
|
|
+ $(INSTALLLIB) "$$pixmap" $(DESTDIR)$(LIBDIR)/themes/$$theme; \
|
|
done; \
|
|
for subtheme in lib/themes/$$theme/*.theme; do \
|
|
- $(INSTALLLIB) "$$subtheme" $(LIBDIR)/themes/$$theme; \
|
|
+ $(INSTALLLIB) "$$subtheme" $(DESTDIR)$(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; \
|
|
+ $(INSTALLLIB) "$$fontfile" $(DESTDIR)$(LIBDIR)/themes/$$theme; \
|
|
done; \
|
|
if test -x "$(MKFONTDIR)"; then \
|
|
- cwd=$$PWD; cd "$(LIBDIR)/themes/$$theme"; \
|
|
+ cwd=$$PWD; cd "$(DESTDIR)$(LIBDIR)/themes/$$theme"; \
|
|
$(MKFONTDIR); \
|
|
cd $$cwd; \
|
|
else \
|
|
echo "WARNING: A dummy file has been copied to"; \
|
|
- echo " $(LIBDIR)/themes/$$theme/fonts.dir"; \
|
|
+ echo " $(DESTDIR)$(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"; \
|
|
+ "$(DESTDIR)$(LIBDIR)/themes/$$theme/fonts.dir"; \
|
|
fi; \
|
|
fi; \
|
|
for xpmdir in $(XPMDIRS) ; do \
|
|
if [ -d lib/themes/$$theme/$$xpmdir ] ; then \
|
|
- $(INSTALLDIR) $(LIBDIR)/themes/$$theme/$$xpmdir; \
|
|
+ $(INSTALLDIR) $(DESTDIR)$(LIBDIR)/themes/$$theme/$$xpmdir; \
|
|
for f in lib/themes/$$theme/$$xpmdir/*.xpm ; do \
|
|
- $(INSTALLLIB) "$$f" $(LIBDIR)/themes/$$theme/$$xpmdir; \
|
|
+ $(INSTALLLIB) "$$f" $(DESTDIR)$(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)
|
|
+ @$(INSTALLDIR) $(DESTDIR)$(DOCDIR)/icewm/doc
|
|
@echo Installing documentation in $(DOCDIR); \
|
|
- cp $(DOCFILES) $(DOCDIR)/icewm-$(VERSION); \
|
|
- cp -r doc/*.sgml doc/*.html $(DOCDIR)/icewm-$(VERSION)
|
|
+ ${BSD_INSTALL_DATA} $(DOCFILES) $(DESTDIR)$(DOCDIR)/icewm
|
|
+ ${BSD_INSTALL_DATA} doc/*.html $(DESTDIR)$(DOCDIR)/icewm/doc
|
|
@echo ------------------------------------------
|
|
|
|
install-nls: nls
|