forked from DCMTK/dcmtk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
69 lines (53 loc) · 1.56 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# Makefile for doxygen
#
@SET_MAKE@
SHELL = /bin/sh
DOXYGEN = doxygen
srcdir = @srcdir@
top_srcdir = @top_srcdir@
configdir = @top_srcdir@/@configdir@
include $(configdir)/@common_makefile@
DCMTK_VERSION = $(PACKAGE_VERSION)$(PACKAGE_VERSION_SUFFIX)
# There is no configuration option to enable the generation of a Doxygen tag
# file, so the '#' has to be removed from the following line if needed.
TAGFILE_NAME = # dcmtk.tag
all: html man
html:
sed -e "s/@DCMTK_VERSION@/$(DCMTK_VERSION)/" -e "s/@DOXYGEN_DATA_DIR@/./" \
-e "s/@DOXYGEN_INPUT_DIR@/../" -e "s/@DOXYGEN_TAGFILE@/$(TAGFILE_NAME)/" \
htmldocs.cfg > htmldocs.tmp
$(DOXYGEN) htmldocs.tmp
man:
sed -e "s/@DCMTK_VERSION@/$(DCMTK_VERSION)/" -e "s/@DOXYGEN_INPUT_DIR@/../" \
manpages.cfg > manpages.tmp
$(DOXYGEN) manpages.tmp
rm -f manpages/man1/*.man.1
rm -f manpages/man1/_*_.1
./patchman.sh
text:
$(configdir)/mkinstalldirs man2text
./man2text.sh
install: install-man install-html
install-man:
$(configdir)/mkinstalldirs $(DESTDIR)$(man1dir)
for file in manpages/man1/*.1 ; do \
$(INSTALL_DATA) $$file $(DESTDIR)$(man1dir) ;\
done
install-html:
$(configdir)/mkinstalldirs $(DESTDIR)$(htmldir)
if [ ! -f htmldocs/index.html ] ; then \
$(MAKE) html ;\
fi
for file in htmldocs/* ; do \
$(INSTALL_DATA) $$file $(DESTDIR)$(htmldir) ;\
done
if [ -n "$(TAGFILE_NAME)" ] ; then \
if [ -f "$(TAGFILE_NAME)" ] ; then \
$(INSTALL_DATA) $(TAGFILE_NAME) $(DESTDIR)$(docdir) ;\
fi \
fi
clean:
rm -f *.log *.tmp $(TRASH)
distclean:
rm -rf *.log *.tmp htmldocs man2text $(DISTTRASH)