| 1 |
## Copyright (C) 2000 Roger Leigh |
| 2 |
## |
| 3 |
## This program is free software; you can redistribute it and/or modify |
| 4 |
## it under the terms of the GNU General Public License as published by |
| 5 |
## the Free Software Foundation; either version 2, or (at your option) |
| 6 |
## any later version. |
| 7 |
## |
| 8 |
## This program is distributed in the hope that it will be useful, |
| 9 |
## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
## GNU General Public License for more details. |
| 12 |
## |
| 13 |
## You should have received a copy of the GNU General Public License |
| 14 |
## along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 15 |
|
| 16 |
## Process this file with automake to produce Makefile.in. |
| 17 |
|
| 18 |
@SET_MAKE@ |
| 19 |
|
| 20 |
SUBDIRS = developer |
| 21 |
|
| 22 |
include $(top_srcdir)/scripts/global.mk |
| 23 |
|
| 24 |
|
| 25 |
## Variables |
| 26 |
|
| 27 |
docdir = $(datadir)/$(PACKAGE)/doc |
| 28 |
|
| 29 |
## Rules |
| 30 |
|
| 31 |
if MAINTAINER_MODE |
| 32 |
if BUILD_DOC |
| 33 |
all-local: gutenprint-stamp gutenprintui2-stamp |
| 34 |
else |
| 35 |
all-local: |
| 36 |
endif |
| 37 |
else |
| 38 |
all-local: |
| 39 |
endif |
| 40 |
|
| 41 |
# Rerun doxygen whenever autogen is run |
| 42 |
gutenprintui2: gutenprintui2-stamp |
| 43 |
gutenprintui2-stamp: gutenprintui2.dox $(top_srcdir)/configure |
| 44 |
$(RM) -rf gutenprintui2/html |
| 45 |
$(DOXYGEN) gutenprintui2.dox |
| 46 |
touch $@ |
| 47 |
|
| 48 |
gutenprint: gutenprint-stamp |
| 49 |
gutenprint-stamp: gutenprint.dox $(top_srcdir)/configure |
| 50 |
$(RM) -rf gutenprint/html |
| 51 |
$(DOXYGEN) gutenprint.dox |
| 52 |
touch $@ |
| 53 |
|
| 54 |
docs: gutenprint-stamp |
| 55 |
cd developer; $(MAKE) |
| 56 |
|
| 57 |
ps: $(MANUAL).ps |
| 58 |
cd developer; $(MAKE) ps |
| 59 |
|
| 60 |
pdf: $(MANUAL).pdf |
| 61 |
cd developer; $(MAKE) pdf |
| 62 |
|
| 63 |
html: |
| 64 |
cd developer; $(MAKE) html |
| 65 |
|
| 66 |
install-data-local: FAQ.html gutenprint-users-manual.odt gutenprint-users-manual.pdf |
| 67 |
$(MKDIR_P) $(DESTDIR)$(docdir) |
| 68 |
$(INSTALL_DATA) $(srcdir)/FAQ.html $(DESTDIR)$(docdir) |
| 69 |
$(INSTALL_DATA) $(srcdir)/gutenprint-users-manual.odt $(DESTDIR)$(docdir) |
| 70 |
$(INSTALL_DATA) $(srcdir)/gutenprint-users-manual.pdf $(DESTDIR)$(docdir) |
| 71 |
|
| 72 |
|
| 73 |
## Clean |
| 74 |
|
| 75 |
distclean-local: |
| 76 |
$(RM) -rf gutenprint |
| 77 |
$(RM) -rf gutenprintui2 |
| 78 |
|
| 79 |
maintainer-clean-local: distclean-local |
| 80 |
|
| 81 |
DISTCLEANFILES= \ |
| 82 |
gutenprint-stamp \ |
| 83 |
gutenprintui2-stamp |
| 84 |
|
| 85 |
MAINTAINERCLEANFILES = \ |
| 86 |
Makefile.in \ |
| 87 |
$(DISTCLEANFILES) |
| 88 |
|
| 89 |
EXTRA_DIST = \ |
| 90 |
FAQ.html \ |
| 91 |
README.maintaining \ |
| 92 |
gutenprint-users-manual.odt \ |
| 93 |
gutenprint-users-manual.pdf \ |
| 94 |
gutenprint.dox.in \ |
| 95 |
gutenprintui2.dox.in \ |
| 96 |
gutenprint \ |
| 97 |
gutenprintui2 \ |
| 98 |
gutenprint-stamp \ |
| 99 |
gutenprintui2-stamp |
| 100 |
|
| 101 |
.PHONY: html ps pdf docs |