File: Makefile

package info (click to toggle)
quixote1 1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,020 kB
  • ctags: 1,115
  • sloc: python: 5,339; ansic: 1,297; makefile: 83; sh: 43
file content (31 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (6)
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
#
# Makefile to convert Quixote docs to HTML
#
# $Id: Makefile 20217 2003-01-16 20:51:53Z akuchlin $
#

TXT_FILES = $(wildcard *.txt)
HTML_FILES = $(filter-out ZPL%,$(TXT_FILES:%.txt=%.html))

RST2HTML = /www/python/bin/rst2html
RST2HTML_OPTS = -o us-ascii

DEST_HOST = staging.mems-exchange.org
DEST_DIR = /www/www-docroot/software/quixote/doc

SS = default.css

%.html: %.txt
	$(RST2HTML) $(RST2HTML_OPTS) $< $@

all: $(HTML_FILES)

clean:
	rm -f $(HTML_FILES)

install:
	rsync -vptgo *.html $(SS) $(DEST_HOST):$(DEST_DIR)

local-install:
	dir=`pwd` ; \
	cd $(DEST_DIR) && ln -sf $$dir/*.html $$dir/$(SS) .