summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorStuart Rackham <srackham@methods.co.nz>2008-12-12 13:07:07 +1300
committerStuart Rackham <srackham@methods.co.nz>2008-12-12 13:07:07 +1300
commitd767df6d0ad5e9015121036091d0f79bab26d528 (patch)
treed283fde96ad1a3dcbbd1a050aa0452a0e6cfc41b /Makefile.in
parent4946ca399208c6b694eb47b5305807a934da59ec (diff)
downloadasciidoc-py3-d767df6d0ad5e9015121036091d0f79bab26d528.tar.gz
Replaced install.sh with Ben Walton's autoconf scripts.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in107
1 files changed, 107 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..678ff40
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,107 @@
+INSTALL = @INSTALL@
+INSTALL_PROG = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+
+SED = @SED@
+LN_S = @LN_S@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+bindir = @bindir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+datarootdir = @datarootdir@
+mandir=@mandir@
+srcdir = @srcdir@
+
+VPATH = @srcdir@
+
+ASCIIDOCCONF = $(sysconfdir)/asciidoc
+
+prog = asciidoc.py a2x
+progdir = $(bindir)
+
+vimdir = @sysconfdir@/vim
+
+manp = $(wildcard doc/*.1)
+manpdir = $(mandir)/man1
+
+conf = $(wildcard *.conf)
+confdir = $(ASCIIDOCCONF)
+
+filters = $(wildcard filters/*.py)
+filtersdir = $(ASCIIDOCCONF)/filters
+
+docbook = $(wildcard docbook-xsl/*xsl)
+docbookdir = $(ASCIIDOCCONF)/docbook-xsl
+
+dblatex = $(wildcard dblatex/*.xsl) $(wildcard dblatex/*.sty)
+dblatexdir = $(ASCIIDOCCONF)/dblatex
+
+css = $(wildcard stylesheets/*.css)
+cssdir = $(ASCIIDOCCONF)/stylesheets
+
+js = $(wildcard javascripts/*.js)
+jsdir = $(ASCIIDOCCONF)/javascripts
+
+callouts = $(wildcard images/icons/callouts/*)
+calloutsdir = $(ASCIIDOCCONF)/images/icons/callouts
+
+icons = $(wildcard images/icons/*.png) images/icons/README
+iconsdir = $(ASCIIDOCCONF)/images/icons
+
+doc = $(wildcard README*) $(wildcard BUGS*) $(wildcard INSTALL*)
+docdir = $(datadir)/doc/asciidoc
+
+DATATARGETS = manp conf filters docbook dblatex css js callouts icons
+PROGTARGETS = prog
+TARGETS = $(DATATARGETS) $(PROGTARGETS) doc
+
+INSTDIRS = $(TARGETS:%=%dir)
+
+.PHONY: $(TARGETS)
+
+all: build
+
+# create directories used during the install
+$(INSTDIRS):
+ $(INSTALL) -d $(DESTDIR)/$($@)
+
+$(PROGTARGETS): % : %dir
+ $(INSTALL_PROG) $($@) $(DESTDIR)/$($<)/
+
+$(DATATARGETS): % : %dir
+ $(INSTALL_DATA) $($@) $(DESTDIR)/$($<)/
+
+vim:
+ $(INSTALL) -d $(DESTDIR)/$(vimdir)/syntax
+ $(INSTALL_DATA) vim/syntax/asciidoc.vim $(DESTDIR)/$(vimdir)/syntax/
+ $(INSTALL) -d $(DESTDIR)/$(vimdir)/ftdetect
+ $(INSTALL_DATA) vim/ftdetect/asciidoc_filetype.vim \
+ $(DESTDIR)/$(vimdir)/ftdetect/
+
+docs: docdir
+ $(INSTALL_DATA) $(doc) $(DESTDIR)/$(docdir)
+ $(INSTALL) -d $(DESTDIR)/$(docdir)/examples/website
+ ( cd examples/website; \
+ cp -R * $(DESTDIR)/$(docdir)/examples/website )
+
+linkpy:
+ (cd $(DESTDIR)/$(progdir); $(LN_S) asciidoc.py asciidoc)
+
+fixconfpath:
+ @for f in $(prog); do \
+ echo "Fixing CONF_DIR in $$f"; \
+ $(SED) "s#^CONF_DIR = '.*'#CONF_DIR = '$(ASCIIDOCCONF)'#; s#^CONF_DIR=.*#CONF_DIR=$(ASCIIDOCCONF)#" $$f > $$f.out; \
+ mv $$f.out $$f; \
+ done
+
+
+build: fixconfpath
+
+install: $(PROGTARGETS) $(DATATARGETS) linkpy docs
+
+install-vim: vim
+
+test:
+ @echo "Nothing to see here...Move along." \ No newline at end of file