ea6cf42001-02-02Henrik Grubbström (Grubba) # # Main Makefile for extracting AutoDoc mk II to XML # # Henrik Grubbström 2001-02-02 #
bc2d6b2016-11-04Pontus Östlund # make devel can be used if changes are made only to the CSS or JS and you # don't feel like recompiling the entire doc to test the changes
f069a52016-04-19Pontus Östlund 
b05c3b2003-03-25Martin Nilsson BUILDDIR=
d4263c2003-11-04H. William Welliver III DESTDIR=
ea6cf42001-02-02Henrik Grubbström (Grubba) PIKE=pike
7d53aa2002-03-11Martin Nilsson all: modref traditional
a25acf2001-11-26Martin Nilsson 
bc2d6b2016-11-04Pontus Östlund pike.ida.liu.se: modref traditional
cd75742002-05-10Manual system 
a25acf2001-11-26Martin Nilsson # These are the actual build targets for making manuals...
ea6cf42001-02-02Henrik Grubbström (Grubba) 
b05c3b2003-03-25Martin Nilsson modref: $(BUILDDIR)/modref.xml structure/modref.css structure/modref.html \
058f0d2016-01-20Pontus Östlund  structure/modref.js presentation/make_html.pike presentation/tree-split-autodoc.pike
0df63c2003-11-04H. William Welliver III  @$(MAKE) PIKE="$(PIKE)" BUILDDIR="$(BUILDDIR)" DESTDIR="$(DESTDIR)" low_modref
e7157f2002-02-25Martin Nilsson 
058f0d2016-01-20Pontus Östlund module_modref: $(BUILDDIR)/module_modref.xml structure/modref.css structure/modref.html \ structure/modref.js presentation/make_html.pike presentation/tree-split-autodoc.pike
399cca2003-11-11H. William Welliver III  @$(MAKE) PIKE="$(PIKE)" BUILDDIR="$(BUILDDIR)" DESTDIR="$(DESTDIR)" low_module_modref low_module_modref:
a0dbf72004-05-19Martin Nilsson  -rm -rf $(DESTDIR)modref
54ad542003-12-17H. William Welliver III  @mkdir $(DESTDIR)modref @cp structure/modref.css $(DESTDIR)modref/style.css
058f0d2016-01-20Pontus Östlund  @cp structure/modref.js $(DESTDIR)modref/site.js
399cca2003-11-11H. William Welliver III  @$(PIKE) presentation/tree-split-autodoc.pike \
058f0d2016-01-20Pontus Östlund  $(BUILDDIR)/module_modref.xml structure/modref.html $(DESTDIR)modref predef
8c54332016-12-08Pontus Östlund  @test -d $(DESTDIR)modref/images || mkdir $(DESTDIR)modref/images
058f0d2016-01-20Pontus Östlund  @for file in pike-logo.svg pike-logo.png next.gif prev.gif unit.gif \
b238c82016-04-30Pontus Östlund  pike_line_left.gif pike_line_middle.gif pike_line_right.gif \ eye-slash.svg; do \
399cca2003-11-11H. William Welliver III  cp src_images/$$file $(DESTDIR)modref/images/ ; done
8c54332016-12-08Pontus Östlund  -cp $(BUILDDIR)/doc_build/images/* $(DESTDIR)modref/images/
399cca2003-11-11H. William Welliver III 
e7157f2002-02-25Martin Nilsson low_modref:
a0dbf72004-05-19Martin Nilsson  -rm -rf $(DESTDIR)modref
da65092003-12-03H. William Welliver III  @test -d $(DESTDIR)modref || mkdir modref
f069a52016-04-19Pontus Östlund  @cp structure/modref.css $(DESTDIR)modref/style.css
058f0d2016-01-20Pontus Östlund  @cp structure/modref.js $(DESTDIR)modref/site.js
8e368d2001-07-20Martin Nilsson  @$(PIKE) presentation/tree-split-autodoc.pike \
0df63c2003-11-04H. William Welliver III  $(BUILDDIR)/modref.xml structure/modref.html $(DESTDIR)modref predef
da65092003-12-03H. William Welliver III  @test -d $(DESTDIR)modref/images || mkdir $(DESTDIR)modref/images
399cca2003-11-11H. William Welliver III  -cp $(BUILDDIR)/doc_build/images/* $(DESTDIR)modref/images
058f0d2016-01-20Pontus Östlund  @for file in pike-logo.svg pike-logo.png next.gif prev.gif unit.gif \
b238c82016-04-30Pontus Östlund  pike_line_left.gif pike_line_middle.gif pike_line_right.gif \
0313d02016-10-03Pontus Östlund  eye-slash.svg; do \ cp src_images/$$file $(DESTDIR)modref/images/ ; done devel: @cp structure/modref.css $(DESTDIR)modref/style.css @cp structure/modref.js $(DESTDIR)modref/site.js @for file in pike-logo.svg pike-logo.png next.gif prev.gif unit.gif \ pike_line_left.gif pike_line_middle.gif pike_line_right.gif \
b238c82016-04-30Pontus Östlund  eye-slash.svg; do \
d4263c2003-11-04H. William Welliver III  cp src_images/$$file $(DESTDIR)modref/images/ ; done
0f14d02001-07-20Johan Schön 
b05c3b2003-03-25Martin Nilsson one_page: onepage $(BUILDDIR)/onepage.xml presentation/make_html.pike
ca77752003-03-26Martin Nilsson  @$(MAKE) PIKE="$(PIKE)" BUILDDIR="$(BUILDDIR)" low_one_page
e7157f2002-02-25Martin Nilsson  low_one_page:
b05c3b2003-03-25Martin Nilsson  cp $(BUILDDIR)/doc_build/images/* onepage/ @$(PIKE) presentation/make_html.pike --img= $(BUILDDIR)/onepage.xml
ea6cf42001-02-02Henrik Grubbström (Grubba) 
b05c3b2003-03-25Martin Nilsson traditional: traditional_manual $(BUILDDIR)/traditional.xml presentation/make_html.pike
0df63c2003-11-04H. William Welliver III  @$(MAKE) PIKE="$(PIKE)" BUILDDIR="$(BUILDDIR)" DESTDIR="$(DESTDIR)" low_traditional
e7157f2002-02-25Martin Nilsson  low_traditional:
d4263c2003-11-04H. William Welliver III  cp $(BUILDDIR)/doc_build/images/* $(DESTDIR)traditional_manual/images/
058f0d2016-01-20Pontus Östlund  cp structure/modref.css traditional_manual/modref.css @$(PIKE) presentation/make_html.pike --dest=$(DESTDIR) --img=images/ \ --template=structure/chapters.html $(BUILDDIR)/traditional.xml
12bfde2001-10-17Martin Nilsson 
a25acf2001-11-26Martin Nilsson # Sub targets used by the above targets.
1e426b2002-03-17Martin Nilsson always:
b19b0e2015-09-14Henrik Grubbström (Grubba) images: $(BUILDDIR)/doc_build/src/post_modules/GTK2/refdoc/images @cp ../src/post_modules/GTK2/refdoc/images/*.png \ $(BUILDDIR)/doc_build/src/post_modules/GTK2/refdoc/images
b9c7a82001-09-09Martin Nilsson 
8a08392001-07-20Martin Nilsson # Directories
a25acf2001-11-26Martin Nilsson onepage: @test -d onepage || mkdir onepage
8a08392001-07-20Martin Nilsson 
12bfde2001-10-17Martin Nilsson traditional_manual: @test -d traditional_manual || mkdir traditional_manual @test -d traditional_manual/images || mkdir traditional_manual/images
dc895b2002-03-18Martin Nilsson 
a25acf2001-11-26Martin Nilsson # Development targets
5fb6ec2001-11-13Martin Nilsson touch-mirardoc: @touch `grep -r \\*\\*\! ../src/modules/* | cut -d: -f1 | \ uniq` @touch `grep -r "//\! module" ../lib/modules/* | cut -d: -f1 | \ uniq`
e990de2002-02-14Martin Nilsson 
8a08392001-07-20Martin Nilsson # Cleanup
811ba42003-04-15Niels Möller clean:
819f2f2015-10-16Martin Nilsson  -rm -fr modref onepage traditional_manual pelix_modref