summaryrefslogtreecommitdiff
path: root/Makefile
blob: 636e44c3ef56b8ee211279d7ca729907d871bd57 (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
# -*- make -*-

TOPDIR=$(shell pwd)

make = make

class_base_dir = $(shell basename $(CURDIR))

upload_location_wm = physics.wm.edu:public_html/classes/$(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
include $(MAKEINCLUDE_DIR)/t2t.mk
include $(MAKEINCLUDE_DIR)/tex.mk
include $(MAKEINCLUDE_DIR)/css.mk


dest_dir = $(DESTDIR)$(PREFIX)/$(PACKAGE_DIR)

.DEFAULT_GOAL := all

all: compile install

compile: $(REQUIRED_TARGETS)

clean: $(CLEAN_TARGETS)
	
real_clean: $(REAL_CLEAN_TARGETS)

install: $(INSTALL_TARGETS)

upload: upload_location_wm


upload_location_wm:
	$(make) upload2location upload_location=$(upload_location_wm)

upload2location: 
	$(upscr) $(files4upload) $(upload_location)

last_time_uploaded: $(files4upload) $(weekly_pdf_slides) $(lab_manuals_pdf) $(homeworks_assignments)
	touch last_time_uploaded

real_clean: clean_all

backup: 
	rsync -rvze ssh * spiffy.physics.wm.edu:jobs/wm/$(class_base_dir)/