summaryrefslogtreecommitdiffstats
path: root/Makefile.in
blob: 45556856ef49fc4a0c2944f97fead543e985b820 (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

all: src/version.cpp
	cd src ; $(MAKE)

clean: FORCE
	cd examples ; $(MAKE) clean
	cd doc ; $(MAKE) clean
	cd src ; $(MAKE) clean
	-rm -f bin/doxy*
	-rm -f objects/*.o

distclean: clean
	-rm -f src/Makefile.doxygen \
	       src/Makefile.doxytag \
	       src/Makefile.doxysearch
	-rm -f Makefile src/Makefile examples/Makefile doc/Makefile
	-rm -f src/doxygen.pro src/doxytag.pro src/doxysearch.pro
	-rm -f src/version.cpp

install:
	$(INSTTOOL) -d $(INSTALL)/bin
	$(INSTTOOL) -d $(INSTALL)/share/doxygen/doc
	$(INSTTOOL) -d $(INSTALL)/share/doxygen/examples
	$(INSTTOOL) -m 755 bin/doxy* $(INSTALL)/bin
	cp -r doc $(INSTALL)/share/doxygen
	cp -r examples $(INSTALL)/share/doxygen
	echo "DOXYGEN  = $(INSTALL)" > $(INSTALL)/share/doxygen/doc/Makefile
	echo "DOXYDOCS = $(INSTALL)/share/doxygen" >> $(INSTALL)/share/doxygen/doc/Makefile
	echo "VERSION  = $(VERSION)" >> $(INSTALL)/share/doxygen/doc/Makefile
	cat doc/Makefile.in >> $(INSTALL)/share/doxygen/doc/Makefile
	cd $(INSTALL)/share/doxygen/examples ; $(MAKE)
	cd $(INSTALL)/share/doxygen/doc ; $(MAKE)

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

ps: docs
	cd latex ; $(MAKE)

archive: distclean
	tar zcvf dx`date +%y%m%d`.tgz tmake doc wintools examples bin objects \
	       src configure Makefile.in Makefile.win.in INSTALL make.bat \
	       LANGUAGE.HOWTO LICENSE PLATFORMS VERSION

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

FORCE: