summaryrefslogtreecommitdiffstats
path: root/Makefile.in
blob: f668893b9b52cb40cb8cc9b2af6baac24333cab5 (plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#all: src/version.cpp doxywizard 
#	cd qtools ; $(MAKE)
#	cd src ; $(MAKE)

clean: FORCE
	cd examples ; $(MAKE) clean
	cd doc ; $(MAKE) clean
	cd qtools ; $(MAKE) clean
	cd src ; $(MAKE) clean
	cd libpng ; $(MAKE) clean
	cd libmd5 ; $(MAKE) clean
	cd addon/doxywizard ; $(MAKE) clean
	cd addon/doxmlparser/src ; $(MAKE) clean
	cd addon/doxmlparser/test ; $(MAKE) clean
	cd addon/doxmlparser/examples/metrics ; $(MAKE) clean
	-rm -f bin/doxy*
	-rm -f objects/*.o

distclean: clean
	cd src ; $(MAKE) distclean
	cd libpng ; $(MAKE) distclean
	cd libmd5 ; $(MAKE) distclean
	cd addon/doxywizard ; $(MAKE) distclean
	cd addon/doxmlparser/src ; $(MAKE) distclean
	cd addon/doxmlparser/test ; $(MAKE) distclean
	cd addon/doxmlparser/examples/metrics ; $(MAKE) distclean
	-rm -f lib/lib*
	-rm -f bin/doxy*
	-rm -f html
	-rm -f latex
	-rm -f objects/*.o
	-rm -f src/Makefile.doxygen src/Makefile.libdoxygen 
	-rm -f src/Makefile.doxytag src/Makefile.libdoxycfg
	-rm -f libpng/Makefile.libpng
	-rm -f libmd5/Makefile.libmd5
	-rm -f Makefile qtools/Makefile src/Makefile examples/Makefile doc/Makefile 
	-rm -f .makeconfig .tmakeconfig
	-rm -f src/doxygen.pro src/libdoxygen.pro src/doxytag.pro qtools/qtools.pro src/libdoxycfg.pro libpng/libpng.pro libmd5/libmd5.pro
	-rm -f src/version.cpp
	-rm -r addon/doxywizard/Makefile
	-rm -f addon/doxywizard/Makefile.doxywizard
	-rm -f addon/doxywizard/doxywizard.pro
	-rm -f addon/doxywizard/obj/*.o
	-rm -f addon/doxywizard/moc/moc_*
	-rm -f addon/doxywizard/config.cpp


install: doxywizard_install 
	$(INSTTOOL) -d $(INSTALL)/bin
	$(INSTTOOL) -m 755 bin/doxygen    $(INSTALL)/bin
	$(INSTTOOL) -m 755 bin/doxytag    $(INSTALL)/bin

install_docs: install
	$(INSTTOOL) -d $(DOCDIR)
	cp -r doc $(DOCDIR)
	cp -r examples $(DOCDIR)
	echo "DOXYGEN  = $(INSTALL)" >  $(DOCDIR)/doc/Makefile
	echo "DOXYDOCS = .."         >> $(DOCDIR)/doc/Makefile
	echo "VERSION  = $(VERSION)" >> $(DOCDIR)/doc/Makefile
	echo "PERL     = $(PERL)"    >> $(DOCDIR)/doc/Makefile
	cat doc/Makefile.in          >> $(DOCDIR)/doc/Makefile
	cd $(DOCDIR)/examples ; $(MAKE)
	cd $(DOCDIR)/doc ; $(MAKE)
	rm -rf $(DOCDIR)/doc
	cd $(DOCDIR)/latex ; $(MAKE)
	cp $(DOCDIR)/latex/doxygen_manual.pdf $(DOCDIR)
	rm -rf $(DOCDIR)/latex

docs: FORCE
	cd examples ; $(MAKE)
	cd doc ; $(MAKE)

pdf: docs
	cd latex ; $(MAKE)

archive: clean
	tar zcvf dx`date +%y%m%d`.tgz Doxyfile libpng libmd5 addon tmake doc wintools examples bin lib objects \
	       qtools src configure configure.bin Makefile.in Makefile.win_nmake.in \
               Makefile.win_make.in INSTALL make.bat LANGUAGE.HOWTO LICENSE PLATFORMS \
               VERSION packages

src/version.cpp: Makefile
	echo "char versionString[]=\"$(VERSION)\";" > src/version.cpp

addon/doxywizard/version.cpp: Makefile
	echo "char versionString[]=\"$(VERSION)\";" > addon/doxywizard/version.cpp

FORCE: