2003-03-27 20:40:16 -05:00
|
|
|
SCX=@SCX@
|
|
|
|
ORION-WM=orion-wm
|
|
|
|
|
2003-05-19 10:37:18 -04:00
|
|
|
enough: $(ORION-WM)
|
|
|
|
|
|
|
|
# --------------------
|
|
|
|
# Distribution...
|
|
|
|
|
|
|
|
distdir = /tmp
|
|
|
|
|
|
|
|
# DISTFILES should include all sources.
|
|
|
|
DISTFILES = COPYING INSTALL README configure configure.in Makefile.in \
|
|
|
|
src/*.scm doc/*.html
|
|
|
|
|
|
|
|
distname = $(ORION-WM)-0.1
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
|
|
|
|
2003-03-27 20:40:16 -05:00
|
|
|
$(ORION-WM): Makefile
|
|
|
|
script=$(ORION-WM) && \
|
2003-03-29 20:40:36 -05:00
|
|
|
echo "#!$(SCX) \\" > $$script && \
|
2003-03-27 20:40:16 -05:00
|
|
|
echo "-lm `pwd`/src/packages.scm -m main -s" >> $$script && \
|
|
|
|
echo '!#' >> $$script && \
|
|
|
|
echo '(start)' >> $$script && \
|
|
|
|
chmod 755 $$script
|
2003-05-19 10:37:18 -04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(ORION-WM)
|