[50a766]: makefile Maximize Restore History

Download this file

makefile    70 lines (52 with data), 2.1 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
# SBCL web page makefile
ifeq ($(SFNETUSER),)
SFNETUSER=$(shell ./extract-sfnet-user)
endif
ifeq ($(SFNETUSER),)
SFNETUSER=$(shell whoami)
endif
SFNETHOST=web.sourceforge.net
HTDOCSDIR=/home/groups/s/sb/sbcl/htdocs
UPLOADFILES=$(wildcard *.html *.css *.png)
.PHONY: all generate-pages clean clean-generated clean-junk commit upload sbcl
all: generate-pages
sbcl:
git submodule update --init
current-release: sbcl
cd sbcl && git describe --match 'sbcl*' --abbrev=0 | sed -e s/sbcl.// | sed -e s/_/\./g > ../current-release
cd sbcl && git log -1 --pretty=format:%ad --date=short >> ../current-release
NEWS: sbcl
cp sbcl/NEWS NEWS
generate-pages: current-release
SBCL=$(SBCL); $${SBCL:-sbcl} --eval "(require :asdf)" --eval "(require :sbcl-page)" --eval "(sbcl-page:generate-pages)" --eval "(quit)"
sbcl/doc/manual/sbcl.html:
cd sbcl && sh make.sh
cd sbcl/doc/manual && make
manual: sbcl/doc/manual/sbcl.html
mkdir -p manual
cp sbcl/doc/manual/sbcl.html manual/index.html
clean: clean-generated clean-junk
clean-generated:
rm -f *.html
# Circa October 2008, SF no longer gives us shell access, so we can't
# do interesting backupoid operations like this target anymore.
#
# upload-pages: generate-pages commit
# @echo "Uploading html files to sf.net:,sbcl.new-pages..."
# @tar zcf - *.html | \
# ssh ${SFNETHOST} \
# '[' -d ,sbcl.new-pages ']' '&&' rm -rf ,sbcl.new-pages.old '&&' mv ,sbcl.new-pages ,sbcl.new-pages.old ';'\
# mkdir ,sbcl.new-pages '&&' cd ,sbcl.new-pages '&&' tar zxf - '&&' \
# echo "Done uploading. Backing up old pages and Installing new ones..." '&&' \
# mkdir -p ../,sbcl.old-pages '&&' mv -f ${HTDOCSDIR}/'*'.html ../,sbcl.old-pages '&&' \
# cp '*'.html ${HTDOCSDIR} '&&'\
# echo "All done."
#
# When I (RMK) updated the website on 20081002, I used the following,
# which did produce tilde-style backup files on the web host.
#
# rsync -avP -e ssh -b *.html <user>,sbcl@web.sourceforge.net:/home/groups/s/sb/sbcl/htdocs/
upload: generate-pages
rsync -avP -e ssh -b manual $(UPLOADFILES) $(SFNETUSER),sbcl@$(SFNETHOST):$(HTDOCSDIR)
clean-junk:
rm -f *.fasl *~ *.lisp-expr