-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
49 lines (41 loc) · 1.86 KB
/
Makefile
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
USERNAME=wsfulton
DRY_RUN=
WORKTREE=../swig
help:
@echo "Simple makefile to create the web pages and publish to the web server"
@echo "Targets:"
@echo " htmlfiles - create .html files from .ht and .ph files"
@echo " makedocs - copy Doc/Manual files from main git source repository working tree to local directory ready for publishing to web server"
@echo " rsync - publish local files to web server"
@echo " rsync-dry-run - dry run of above"
@echo " updateweb - both htmlfiles and rsync targets"
@echo " updateweb-dry-run - dry run of above"
@echo " release - htmlfiles and makedocs and rsync targets"
@echo "For the rsync target, use the USERNAME variable to specify your SF username, eg"
@echo " make rsync USERNAME=xyz"
@echo "Use the dry-run targets to see what will get synchronised to the web server"
updateweb: htmlfiles rsync
updateweb-dry-run: htmlfiles rsync-dry-run
htmlfiles:
python3 makeweb.py
rsync:
rsync $(DRY_RUN) --verbose -r --checksum --chmod=ug+w,ugo+r --delete-excluded --exclude .git --exclude .gitignore --exclude "*.sw?" --exclude "*.bak" --exclude "*.ht" --exclude "*.ph" --exclude "*.php" --exclude "*.tmp" --exclude "default.*" --exclude Makefile --exclude "*.py" --exclude "*.book" --exclude "survey/*.csv" --exclude "survey/swigsurvey" --exclude "survey/README.txt" --rsh="ssh" . $(USERNAME),swig@web.sourceforge.net:/home/groups/s/sw/swig/swigweb
rsync-dry-run:
$(MAKE) rsync DRY_RUN=--dry-run
release: htmlfiles makedocs rsync
makedocs:
rm -rf Release
mkdir -p Release
cp $(WORKTREE)/ANNOUNCE Release/
cp $(WORKTREE)/CHANGES Release/
cp $(WORKTREE)/CHANGES.current Release/
cp $(WORKTREE)/COPYRIGHT Release/
cp $(WORKTREE)/LICENSE* Release/
cp $(WORKTREE)/RELEASENOTES Release/
cp $(WORKTREE)/README Release/
rm -rf Doc4.3
cp -rf $(WORKTREE)/Doc/Manual Doc4.3
rm Doc4.3/*.py
rm -f Doc4.3/*.bak
rm Doc4.3/chapters
rm Doc4.3/README