File: Makefile-lang

package info (click to toggle)
expeyes 5.3.3%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 43,480 kB
  • sloc: python: 36,039; ansic: 9,754; xml: 1,010; makefile: 784; sh: 581; asm: 202; javascript: 46; php: 1
file content (21 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /usr/bin/make

##### This part is to generate html files in the current directory ###########

RSTSOURCES = $(wildcard _sources/*.rst)
SOURCES_ = $(shell ls _sources/*.rst | grep -v index.rst | sed 's%_sources/%%')
HTML_FILES = $(patsubst %.rst, %.html, $(SOURCES_))

all: $(HTML_FILES)
	@echo
	@echo "[Done]"
%.html: _sources/%.rst
	@echo -n "$@ "
	@rst2html $< $@

.PHONY: clean
clean:
	rm -rf $(BUILDDIR)/doctrees
	if [ -z "$(EYES17_ONLY)" ]; then rm -f *.html; fi