# -*- 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)/