+ Load scx 0.2 from library path
+ Install stand-alone program and scheme files
This commit is contained in:
parent
d632a308bd
commit
400cc0a59b
76
Makefile.in
76
Makefile.in
|
@ -1,5 +1,24 @@
|
||||||
SCX=@SCX@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
ORION-WM=orion-wm
|
|
||||||
|
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)
|
enough: $(ORION-WM)
|
||||||
|
|
||||||
|
@ -10,9 +29,9 @@ distdir = /tmp
|
||||||
|
|
||||||
# DISTFILES should include all sources.
|
# DISTFILES should include all sources.
|
||||||
DISTFILES = COPYING INSTALL README configure configure.in Makefile.in \
|
DISTFILES = COPYING INSTALL README configure configure.in Makefile.in \
|
||||||
src/*.scm doc/*.html
|
mkinstalldirs install-sh src/*.scm doc/*.html
|
||||||
|
|
||||||
distname = $(ORION-WM)-0.1
|
distname = $(ORION-WM)-$(PACKAGE_VERSION)
|
||||||
|
|
||||||
.PHONY : dist
|
.PHONY : dist
|
||||||
dist:
|
dist:
|
||||||
|
@ -34,14 +53,49 @@ dist:
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
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): Makefile
|
$(ORION-WM): $(srcdir)/orion.in
|
||||||
script=$(ORION-WM) && \
|
sed -e "s|@orionscsh@|${SCSH}|g" \
|
||||||
echo "#!$(SCX) \\" > $$script && \
|
-e "s|@orionschemedir@|`pwd`/src/|g" $< > $@ && \
|
||||||
echo "-lm `pwd`/src/packages.scm -m main -s" >> $$script && \
|
chmod a+x $@
|
||||||
echo '!#' >> $$script && \
|
|
||||||
echo '(start)' >> $$script && \
|
install: install-orion install-scheme
|
||||||
chmod 755 $$script
|
|
||||||
|
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:
|
clean:
|
||||||
rm -f $(ORION-WM)
|
rm -f $(ORION-WM)
|
20
configure.in
20
configure.in
|
@ -1,9 +1,17 @@
|
||||||
AC_INIT
|
AC_INIT(orion, 0.2)
|
||||||
AC_ARG_WITH(scx, [ --with-scx=FILE the scx binary to use [/usr/local/bin/scx]],
|
AC_CONFIG_SRCDIR(configure.in)
|
||||||
scx_binary=$withval , scx_binary=/usr/local/bin/scx)
|
|
||||||
AC_SUBST(scx_binary)
|
|
||||||
|
|
||||||
AC_PATH_PROG(SCX, scx, $scx_binary)
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
AC_OUTPUT(Makefile)
|
AC_ARG_WITH(scsh,
|
||||||
|
AC_HELP_STRING([--with-scsh=FILE],
|
||||||
|
[the scsh binary to use @<:@scsh from PATH@:>@]),
|
||||||
|
SCSH=$withval)
|
||||||
|
|
||||||
|
AC_PATH_PROG([SCSH], [scsh], AC_MSG_ERROR([Cannot find scsh executable]))
|
||||||
|
|
||||||
|
schemedir='${libdir}'"/orion/scheme"
|
||||||
|
AC_SUBST(schemedir)
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(Makefile)
|
||||||
|
AC_OUTPUT
|
||||||
|
|
|
@ -226,7 +226,7 @@
|
||||||
(files root-manager))
|
(files root-manager))
|
||||||
|
|
||||||
(define-structure main
|
(define-structure main
|
||||||
(export start)
|
(export start orion-wm)
|
||||||
(open scsh scheme threads handle
|
(open scsh scheme threads handle
|
||||||
xlib
|
xlib
|
||||||
manager root-manager config
|
manager root-manager config
|
||||||
|
|
Loading…
Reference in New Issue