-.PHONY: html pdf clean
-$(DOCNAME).html: $(SRC)
- @makeinfo -o $@ --no-split --no-headers --html --css-include=style.css $^
-html: $(SRC)
- @cp style.css $@/; \
- makeinfo -o $@ --html --css-ref=style.css $^
-$(DOCNAME).dvi: $(SRC)
- @if test ! -s $(TEXOBJDIR); then mkdir $(TEXOBJDIR); fi; \
- cd $(TEXOBJDIR); \
- TEX=ptex texi2dvi --texinfo=@afourpaper -o ../$@ ../$^; \
- cd -
+.PHONY: all htmlnosplit pdf clean
+all: info htmlnosplit html pdf
+info: $(DOCNAME).info
+$(DOCNAME).info: $(SRC)
+ @makeinfo -o $@ $^
+htmlnosplit: $(DOCNAME).html
+$(DOCNAME).html: $(SRC) $(CSS)
+ @makeinfo -o $@ --no-split --no-headers --html --css-include=$(CSS) $(SRC)
+html: $(SRC) $(CSS)
+ @if test ! -s $@; then mkdir $@; fi; \
+ cp $(CSS) $@/$(CSS); \
+ makeinfo -o $@ --html --css-ref=style.css $(SRC)
+pdf: $(DOCNAME).pdf