summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--[l---------]Makefile61
1 files changed, 60 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 70bbe43..7c59618 120000..100644
--- a/Makefile
+++ b/Makefile
@@ -1 +1,60 @@
-../make_templates/subdir_makefile/Makefile \ No newline at end of file
+# -*- 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)/
+