GNUmakefile 2.09 KB
Newer Older
Robert Ricci's avatar
Robert Ricci committed
1 2 3 4
# 
# Braindead makefile for now - always build the thing
#
TOPLEVEL=apt-manual
5
INSTALL_LIVE=ops.emulab.net:/usr/testbed/aptdocs/
6
INSTALL_CLAB=ops.emulab.net:/usr/testbed/cloudlabdocs/
Gary Wong's avatar
Gary Wong committed
7
INSTALL_PNET=ops.emulab.net:/usr/testbed/phantomnetdocs/
Gary Wong's avatar
Gary Wong committed
8
INSTALL_ELAB=ops.emulab.net:/usr/testbed/emulabdocs/
Robert Ricci's avatar
Robert Ricci committed
9 10

SCRIBBLEFILES=$(wildcard *.scrbl) 
11 12
SCREENSHOTFILES=$(wildcard screenshots/*)
DEFSFILE=defs.rkt
Robert Ricci's avatar
Robert Ricci committed
13

14 15
SOURCES=$(SCRIBBLEFILES) $(SCREENSHOTFILES) $(DEFSFILE)

Gary Wong's avatar
Gary Wong committed
16
all: each
17

Gary Wong's avatar
Gary Wong committed
18 19
pdf: pdf/apt-manual.pdf pdf/cloudlab-manual.pdf pdf/phantomnet-manual.pdf \
	pdf/emulab-manual.pdf
Robert Ricci's avatar
Robert Ricci committed
20

21
apt: $(SOURCES)
22
	scribble --htmls ++style apt-manual.css $(TOPLEVEL).scrbl
Robert Ricci's avatar
Robert Ricci committed
23

Gary Wong's avatar
Gary Wong committed
24 25 26 27 28 29
cloudlab: $(SOURCES)
	scribble --htmls ++style cloudlab-manual.css ++arg clab cloudlab-manual.scrbl

phantomnet: $(SOURCES)
	scribble --htmls ++style phantomnet-manual.css ++arg pnet phantomnet-manual.scrbl

Gary Wong's avatar
Gary Wong committed
30 31 32
emulab: $(SOURCES)
	scribble --htmls ++style emulab-manual.css ++arg elab emulab-manual.scrbl

Robert Ricci's avatar
Robert Ricci committed
33
pdf/apt-manual.pdf: $(SOURCES)
34
	scribble --dest pdf/ --pdf ++arg pdf $(TOPLEVEL).scrbl
Robert Ricci's avatar
Robert Ricci committed
35 36

pdf/cloudlab-manual.pdf: $(SOURCES)
37
	scribble --dest pdf/ --pdf ++arg clab ++arg pdf cloudlab-manual.scrbl
Robert Ricci's avatar
Robert Ricci committed
38

Gary Wong's avatar
Gary Wong committed
39 40
pdf/phantomnet-manual.pdf: $(SOURCES)
	scribble --dest pdf/ --pdf ++arg pnet ++arg pdf phantomnet-manual.scrbl
41

Gary Wong's avatar
Gary Wong committed
42 43 44 45
pdf/emulab-manual.pdf: $(SOURCES)
	scribble --dest pdf/ --pdf ++arg elab ++arg pdf emulab-manual.scrbl

each: apt cloudlab phantomnet emulab
46

Robert Ricci's avatar
Robert Ricci committed
47
.PHONY: apt cloudlab phantomnet emulab all each clean install-live install-cloudlab install-phantomnet install-emulab install-all
48

Robert Ricci's avatar
Robert Ricci committed
49 50
clean:
	-rm -rf $(TOPLEVEL)/
51
	-rm -rf cloudlab-manual/
Gary Wong's avatar
Gary Wong committed
52
	-rm -rf phantomnet-manual/
Gary Wong's avatar
Gary Wong committed
53
	-rm -rf emulab-manual/
54
	-rm -rf pdf/*
Robert Ricci's avatar
Robert Ricci committed
55
	-rm *.bak
Robert Ricci's avatar
Robert Ricci committed
56 57 58 59 60
	-rm *.tex
	-rm *.log
	-rm *.aux
	-rm *.out
	-rm *.png
61

Robert Ricci's avatar
Robert Ricci committed
62 63
install-all: install-live install-cloudlab install-phantomnet install-emulab

Robert Ricci's avatar
Robert Ricci committed
64
install-live: apt
65
	-rsync -v -az -e ssh --delete apt-manual/ $(INSTALL_LIVE)
66

Robert Ricci's avatar
Robert Ricci committed
67
install-cloudlab: cloudlab
68
	-rsync -v -az -e ssh --delete cloudlab-manual/ $(INSTALL_CLAB)
Gary Wong's avatar
Gary Wong committed
69

Robert Ricci's avatar
Robert Ricci committed
70
install-phantomnet: phantomnet
Gary Wong's avatar
Gary Wong committed
71
	-rsync -v -az -e ssh --delete phantomnet-manual/ $(INSTALL_PNET)
Gary Wong's avatar
Gary Wong committed
72

Robert Ricci's avatar
Robert Ricci committed
73
install-emulab: emulab
Gary Wong's avatar
Gary Wong committed
74
	-rsync -v -az -e ssh --delete emulab-manual/ $(INSTALL_ELAB)