PACKAGE_VERSION = @PACKAGE_VERSION@ srcdir = @srcdir@ VPATH = @srcdir@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ schemedir = @schemedir@ SCSH = @SCSH@ mkinstalldirs = $(SHELL) $(srcdir)/mkinstalldirs ORION-WM=orion enough: $(ORION-WM) # -------------------- # Distribution... distdir = /tmp # DISTFILES should include all sources. DISTFILES = COPYING INSTALL README configure configure.in Makefile.in \ mkinstalldirs install-sh orion.in src/*.scm doc/*.html distname = $(ORION-WM)-$(PACKAGE_VERSION) .PHONY : dist dist: distname=$(distname) && \ distfile=$(distdir)/$$distname.tar.gz && \ if [ -d $(distdir) ] && \ [ -w $$distfile -o -w $(distdir) ]; then \ rm -f $$distname && \ ln -s . $$distname && \ files='' && \ for i in $(DISTFILES); do \ files="$$files $$distname/$$i"; \ done && \ tar -cf - $$files | \ gzip --best >$$distfile && \ rm $$distname; \ else \ echo "Can't write $$distfile" >&2; \ exit 1; \ fi scheme_DATA = \ src/button.scm \ src/file-name-completion.scm \ src/manager.scm \ src/move-wm.scm \ src/root-manager.scm \ src/titlebar.scm \ src/config.scm \ src/key-grab.scm \ src/move-wm-icon.scm \ src/packages.scm \ src/split-wm.scm \ src/utils.scm \ src/drag-window.scm \ src/main.scm \ src/move-wm-resizer.scm \ src/prompt.scm \ src/switch-wm.scm \ src/main.scm $(ORION-WM): $(srcdir)/orion.in sed -e "s|@orionscsh@|${SCSH}|g" \ -e "s|@orionschemedir@|`pwd`/src/|g" $< > $@ && \ chmod a+x $@ install: install-orion install-scheme install-orion: $(mkinstalldirs) $(DESTDIR)$(bindir) sed -e "s|@orionscsh@|${SCSH}|g" \ -e "s|@orionschemedir@|$(schemedir)|g" \ $(srcdir)/orion.in \ > $(DESTDIR)$(bindir)/$(ORION-WM) && chmod a+x $(DESTDIR)$(bindir)/$(ORION-WM) install-scheme: $(mkinstalldirs) $(DESTDIR)$(schemedir) @list='$(scheme_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(schemeDATA_INSTALL) $$d$$p $(DESTDIR)$(schemedir)/$$f"; \ $(INSTALL_DATA) $$d$$p $(DESTDIR)$(schemedir)/$$f; \ done clean: rm -f $(ORION-WM)