|
1 #all: src/version.cpp doxywizard |
|
2 # cd qtools ; $(MAKE) |
|
3 # cd src ; $(MAKE) |
|
4 |
|
5 DESTDIR = |
|
6 |
|
7 clean: FORCE |
|
8 cd examples ; $(MAKE) clean |
|
9 cd doc ; $(MAKE) clean |
|
10 cd qtools ; $(MAKE) clean |
|
11 cd src ; $(MAKE) clean |
|
12 cd libmd5 ; $(MAKE) clean |
|
13 cd addon/doxywizard ; $(MAKE) clean |
|
14 cd addon/doxmlparser/src ; $(MAKE) clean |
|
15 cd addon/doxmlparser/test ; $(MAKE) clean |
|
16 cd addon/doxmlparser/examples/metrics ; $(MAKE) clean |
|
17 -rm -f bin/doxy* |
|
18 -rm -f objects/*.o |
|
19 |
|
20 distclean: clean |
|
21 cd src ; $(MAKE) distclean |
|
22 cd libmd5 ; $(MAKE) distclean |
|
23 cd addon/doxywizard ; $(MAKE) distclean |
|
24 cd addon/doxmlparser/src ; $(MAKE) distclean |
|
25 cd addon/doxmlparser/test ; $(MAKE) distclean |
|
26 cd addon/doxmlparser/examples/metrics ; $(MAKE) distclean |
|
27 cd addon/doxyapp ; $(MAKE) distclean |
|
28 -rm -f lib/lib* |
|
29 -rm -f bin/doxy* |
|
30 -rm -f html |
|
31 -rm -f latex |
|
32 -rm -f objects/*.o |
|
33 -rm -f src/Makefile.doxygen src/Makefile.libdoxygen |
|
34 -rm -f src/Makefile.doxytag src/Makefile.libdoxycfg |
|
35 -rm -f libmd5/Makefile.libmd5 |
|
36 -rm -f Makefile qtools/Makefile src/Makefile examples/Makefile doc/Makefile |
|
37 -rm -f .makeconfig .tmakeconfig |
|
38 -rm -f src/doxygen.pro src/libdoxygen.pro src/doxytag.pro qtools/qtools.pro src/libdoxycfg.pro libmd5/libmd5.pro |
|
39 -rm -f src/version.cpp |
|
40 -rm -r addon/doxywizard/Makefile |
|
41 -rm -f addon/doxywizard/doxywizard.pro |
|
42 -rm -f VERSION |
|
43 -rm -f packages/rpm/doxygen.spec |
|
44 |
|
45 DATE=$(shell date "+%B %Y") |
|
46 |
|
47 MAN1DIR = man/man1 |
|
48 |
|
49 install: doxywizard_install |
|
50 $(INSTTOOL) -d $(DESTDIR)/$(INSTALL)/bin |
|
51 $(INSTTOOL) -m 755 bin/doxygen $(DESTDIR)/$(INSTALL)/bin |
|
52 $(INSTTOOL) -m 755 bin/doxytag $(DESTDIR)/$(INSTALL)/bin |
|
53 $(INSTTOOL) -d $(DESTDIR)/$(INSTALL)/$(MAN1DIR) |
|
54 cat doc/doxygen.1 | sed -e "s/DATE/$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > doxygen.1 |
|
55 $(INSTTOOL) -m 644 doxygen.1 $(DESTDIR)/$(INSTALL)/$(MAN1DIR)/doxygen.1 |
|
56 rm doxygen.1 |
|
57 cat doc/doxytag.1 | sed -e "s/DATE/$(DATE)/g" -e "s/VERSION/$(VERSION)/g" > doxytag.1 |
|
58 $(INSTTOOL) -m 644 doxytag.1 $(DESTDIR)/$(INSTALL)/$(MAN1DIR)/doxytag.1 |
|
59 rm doxytag.1 |
|
60 |
|
61 install_docs: |
|
62 $(INSTTOOL) -d $(DESTDIR)/$(DOCDIR) |
|
63 $(MAKE) -C examples |
|
64 $(MAKE) -C doc |
|
65 $(MAKE) -C latex |
|
66 $(INSTTOOL) -m 644 latex/doxygen_manual.pdf $(DESTDIR)/$(DOCDIR) |
|
67 cp -r examples $(DESTDIR)/$(DOCDIR) |
|
68 cp -r html $(DESTDIR)/$(DOCDIR) |
|
69 |
|
70 docs: FORCE |
|
71 cd examples ; $(MAKE) |
|
72 cd doc ; $(MAKE) |
|
73 |
|
74 pdf: docs |
|
75 cd latex ; $(MAKE) |
|
76 |
|
77 DISTFILES = Doxyfile libmd5 addon tmake doc examples bin lib objects \ |
|
78 qtools src configure configure.bin Makefile.in Makefile.win_nmake.in \ |
|
79 Makefile.win_make.in INSTALL LANGUAGE.HOWTO LICENSE PLATFORMS \ |
|
80 VERSION packages winbuild |
|
81 |
|
82 archive: clean |
|
83 tar zcvf dx`date +%y%m%d`.tgz $(DISTFILES) |
|
84 |
|
85 DISTDIR = doxygen-`echo $(VERSION) | tr - _` |
|
86 |
|
87 dist: clean |
|
88 rm -rf $(DISTDIR) |
|
89 mkdir $(DISTDIR) |
|
90 cp -a $(DISTFILES) README $(DISTDIR) |
|
91 find $(DISTDIR) \( -name ".svn" \) -print0 | xargs -0 rm -rf |
|
92 tar zcvf $(DISTDIR).src.tar.gz $(DISTDIR) |
|
93 rm -rf $(DISTDIR) |
|
94 |
|
95 src/version.cpp: Makefile |
|
96 echo "char versionString[]=\"$(VERSION)\";" > src/version.cpp |
|
97 |
|
98 addon/doxywizard/version.cpp: Makefile |
|
99 echo "char versionString[]=\"$(VERSION)\";" > addon/doxywizard/version.cpp |
|
100 |
|
101 DISTDIR = doxygen-`echo $(VERSION) | tr - _` |
|
102 rpm: dist |
|
103 gzip -df $(DISTDIR).src.tar.gz |
|
104 mkdir $(DISTDIR) |
|
105 mkdir $(DISTDIR)/packages |
|
106 mkdir $(DISTDIR)/packages/rpm |
|
107 cp packages/rpm/doxygen.spec $(DISTDIR)/packages/rpm |
|
108 rm -rf $(DISTDIR) |
|
109 gzip -9v $(DISTDIR).src.tar |
|
110 rpmbuild -ta %%WITHDOXYWIZARD%% $(DISTDIR).src.tar.gz |
|
111 |
|
112 rpmsrc: dist |
|
113 gzip -df $(DISTDIR).src.tar.gz |
|
114 mkdir $(DISTDIR) |
|
115 mkdir $(DISTDIR)/packages |
|
116 mkdir $(DISTDIR)/packages/rpm |
|
117 cp packages/rpm/doxygen.spec $(DISTDIR)/packages/rpm |
|
118 tar -rvf $(DISTDIR).src.tar $(DISTDIR)/packages/rpm/doxygen.spec |
|
119 rm -rf $(DISTDIR) |
|
120 gzip -9v $(DISTDIR).src.tar |
|
121 rpmbuild -ts %%WITHDOXYWIZARD%% $(DISTDIR).src.tar.gz |
|
122 |
|
123 rpmbinary: dist |
|
124 gzip -df $(DISTDIR).src.tar.gz |
|
125 mkdir $(DISTDIR) |
|
126 mkdir $(DISTDIR)/packages |
|
127 mkdir $(DISTDIR)/packages/rpm |
|
128 cp packages/rpm/doxygen.spec $(DISTDIR)/packages/rpm |
|
129 tar -rvf $(DISTDIR).src.tar $(DISTDIR)/packages/rpm/doxygen.spec |
|
130 rm -rf $(DISTDIR) |
|
131 gzip -9v $(DISTDIR).src.tar |
|
132 rpmbuild -tb %%WITHDOXYWIZARD%% $(DISTDIR).src.tar.gz |
|
133 |
|
134 |
|
135 ctags: |
|
136 ctags -f tags src addon/doxywizard qtools |
|
137 |
|
138 FORCE: |
|
139 |