Commits

Takayuki KONDO  committed d28fb1d

support BUILDDIR

  • Participants
  • Parent commits 10bfc63

Comments (0)

Files changed (1)

 # Makefile like sphinx output
 
 SRC =  python.rst
+DST =  html
+ifndef BUILDDIR
+BUILDDIR=.
+endif
 
 all: html
 
 html:
-	mkdir -p $(BUILDDIR)/html
-	-landslide $(SRC) -o > $(BUILDDIR)/html/python-intro.html
+	mkdir -p $(BUILDDIR)/$(DST)
+	-landslide $(SRC) -o > $(BUILDDIR)/$(DST)/index.html
+
+clean:
+	rm -fr $(BUILDDIR)/$(DST)