blob: 01f5eee04a1abcb824410d9901dd7f910c230548 (
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
|
# -*- make -*-
# FILE: "/home/evmik/src/my_src/GradeBook/Makefile"
# LAST MODIFICATION: "Wed, 25 Jan 2012 22:59:44 -0500 (evmik)"
# (C) 2011 by Eugeniy Mikhailov, <evgmik@gmail.com>
# $Id:$
#
TOPDIR=$(shell pwd)
GIT_VERSION:="$(shell git describe --tags --always) ($(shell git log --pretty=format:%cd --date=short -n1), branch $(shell [ -f $(TOPDIR)/.git/HEAD ] && sed 's/ref: refs\/heads\/\(.*\)/\\\\\\"\1\\\\\\"/g' $(TOPDIR)/.git/HEAD || echo 'unknown'))"
VERSION:=$(shell git describe --tags --abbrev=0)
upscr = rsync -ave ssh
upload_location_code = physics.wm.edu:public_html/cgi-bin/
upload_location_styles = physics.wm.edu:public_html/
upload_location_icons = physics.wm.edu:public_html/icons/
files4upload_code = ./GradeBook.tcl ./GradeBook_lib.tcl ./libBasicTableOperations.tcl ./gb_config.tcl
files4upload_styles = ./GradeBook.css
files4upload_icons = $(wildcard ./icons/*.png)
default:
upload_cgi: upload_code upload_styles upload_icons
upload_icons:
$(upscr) $(files4upload_icons) $(upload_location_icons)
upload_code: ./gb_config.tcl
$(upscr) $(files4upload_code) $(upload_location_code)
upload_styles: style
$(upscr) $(files4upload_styles) $(upload_location_styles)
style: GradeBook.css
GradeBook.css: GradeBook.scss
sass $< > $@
conf: gb_config.tcl
gb_config.tcl: gb_config.template
sed s/__VERSION__/{$(GIT_VERSION)}/ < $< > $@
|