blob: 7c59618078998c911b043656416928e57a5aeb54 (
plain)
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
|
# -*- make -*-
TOPDIR=$(shell pwd)
TOPDIR=.
make = make
class_base_dir = $(shell basename $(CURDIR))
upload_location_wm = physics.wm.edu:public_html/classes/$(class_base_dir)
hdrive_location = ~/disk_h/$(class_base_dir)
# see 2012_fall_practical_computing_for_scientists for PREVIOUS_YEAR_MATERIALS_DIR usage
PREVIOUS_YEAR_MATERIALS_DIR =
files4upload = $(html_targets) $(samples) $(syllabus_dir) $(misc)
upscr = rsync --delete -ave ssh
include $(TOPDIR)/common.mk
include ./local.mk
dest_dir = $(DESTDIR)$(PREFIX)/$(PACKAGE_DIR)
include $(MAKEINCLUDE_DIR)/t2t.mk
include $(MAKEINCLUDE_DIR)/pandoc.mk
include $(MAKEINCLUDE_DIR)/rem.mk
include $(MAKEINCLUDE_DIR)/tex.mk
include $(MAKEINCLUDE_DIR)/css.mk
include $(MAKEINCLUDE_DIR)/raw.mk
include $(MAKEINCLUDE_DIR)/subdirs.mk
include $(MAKEINCLUDE_DIR)/dest_dirs.mk
.DEFAULT_GOAL := all
all: compile install
compile: subdirs $(REQUIRED_TARGETS)
clean: subdirs $(CLEAN_TARGETS)
real_clean: subdirs clean $(REAL_CLEAN_TARGETS)
install: subdirs $(INSTALL_TARGETS)
upload: upload_location_wm
upload_location_wm:
$(MAKE) upload2location upload_location=$(upload_location_wm)
upload2location:
$(upscr) $(PREFIX)/ $(upload_location)
hdrive:
$(MAKE) DESTDIR=$(hdrive_location)/
backup:
rsync -rvze ssh * spiffy.physics.wm.edu:jobs/wm/$(class_base_dir)/
|