Change build system so that changes to Makefile.defs don't get tracked
[muse-el.git] / texi / Makefile
blob12c0ad4ec31fdad0242b634d389365578314142a
1 .PHONY: all info-only doc clean realclean distclean fullclean install
2 .PRECIOUS: %.info %.html
4 DEFS = $(shell test -f ../Makefile.defs && echo ../Makefile.defs \
5 || echo ../Makefile.defs.default)
7 include $(DEFS)
9 all: doc
11 %.info: %.texi
12 makeinfo $<
14 %.html: %.texi
15 makeinfo --html --no-split $<
17 info-only: $(MANUAL).info
19 doc: $(MANUAL).info $(MANUAL).html
21 clean: ;
23 distclean realclean fullclean: clean
24 -rm -f $(MANUAL).info $(MANUAL).html
26 install: $(MANUAL).info
27 [ -d $(INFODIR) ] || install -d $(INFODIR)
28 install -m 0644 $(MANUAL).info $(INFODIR)/$(MANUAL)
29 $(INSTALLINFO) $(INFODIR)/$(MANUAL)