increase pause before reboot so web interface remains responsive when issuing a reboo...
[openocd.git] / Makefile.am
1 # not a GNU package. You can remove this line, if
2 # have all needed files, that a GNU package needs
3 AUTOMAKE_OPTIONS = gnu 1.6
4
5 nobase_dist_pkgdata_DATA = \
6         contrib/libdcc/dcc_stdio.c \
7         contrib/libdcc/dcc_stdio.h \
8         contrib/libdcc/example.c \
9         contrib/libdcc/README \
10         contrib/openocd.udev
11
12 SUBDIRS = src doc
13
14 EXTRA_DIST = \
15         Doxyfile.in \
16         tools/logger.pl
17
18 libtool: $(LIBTOOL_DEPS)
19         $(SHELL) ./config.status --recheck
20
21 docs: pdf html doxygen
22
23 Doxyfile: $(srcdir)/Doxyfile.in
24         @echo "Creating $@ from $<..."
25         @( \
26           echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
27           echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
28           sed -e 's,@srcdir\@,$(srcdir),' $< \
29         ) > $@
30
31 doxygen::
32         $(MAKE) Doxyfile
33         doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
34
35 TCL_PATH = tcl
36 # command to find paths of script files, relative to TCL_PATH
37 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
38                 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
39
40 dist-hook:
41         for i in $$($(TCL_FILES)); do \
42                 j="$(distdir)/$(TCL_PATH)/$$i" && \
43                 mkdir -p "$$(dirname $$j)" && \
44                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
45         done
46
47 install-data-hook:
48         for i in $$($(TCL_FILES)); do \
49                 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
50                 mkdir -p "$$(dirname $$j)" && \
51                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
52         done
53
54 uninstall-hook:
55         rm -rf $(DESTDIR)$(pkgdatadir)/scripts
56
57
58 distclean-local:
59         rm -rf Doxyfile doxygen
60
61 DISTCLEANFILES = doxygen.log
62
63 MAINTAINERCLEANFILES = \
64         $(srcdir)/INSTALL \
65         $(srcdir)/configure \
66         $(srcdir)/Makefile.in \
67         $(srcdir)/depcomp \
68         $(srcdir)/config.guess \
69         $(srcdir)/config.sub \
70         $(srcdir)/config.h.in \
71         $(srcdir)/config.h.in~ \
72         $(srcdir)/compile \
73         $(srcdir)/ltmain.sh \
74         $(srcdir)/missing \
75         $(srcdir)/aclocal.m4 \
76         $(srcdir)/install-sh