File: Makefile.in

package info (click to toggle)
yudit 2.5.4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,528 kB
  • ctags: 8,403
  • sloc: cpp: 59,394; ansic: 2,585; perl: 2,398; makefile: 864; sh: 321
file content (104 lines) | stat: -rw-r--r-- 5,214 bytes parent folder | download
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
include Makefile.conf

SUBDIRS=stoolkit swindow mytool swidget uniconv uniprint gui

SUBDIRS_all:=$(foreach dir, $(SUBDIRS), $(dir)_all)
SUBDIRS_clean:=$(foreach dir, $(SUBDIRS), $(dir)_clean)

.PHONY: $(SUBDIRS_all) $(SUBDIRS_clean)

all: $(SUBDIRS_all)
	@echo "M----------------------------------------------------"
	@echo "Everything is made. You can type 'make install' now."
	@echo "M----------------------------------------------------"

$(SUBDIRS_all):
	$(MAKE) -C $(patsubst %_all,%,$@) all

$(SUBDIRS_clean):
	$(MAKE) -C $(patsubst %_clean,%,$@) clean

clean: $(SUBDIRS_clean)
	$(MAKE) -C tests clean
	/bin/rm -f core */core */*/core
	/bin/rm -f *.pdb */*.pdb */*/*.pdb
	/bin/rm -f *.ilk */*.ilk */*/*.ilk
	/bin/rm -f *.opt */*.opt */*/*.opt

veryclean: clean
	/bin/rm -f */.depend  
	/bin/rm -f config.cache config.log config.status
	/bin/rm -f Makefile  

depend:
	@for i in $(SUBDIRS); do \
		cd $$i ; $(MAKE) depend; \
		if [ $$? != 0 ]; then \
			cd ..; \
			exit 1; \
		fi;  \
		cd ..; \
	done

install:
	@if test ! -d $(DESTDIR)/$(prefix) ;then mkdir -p $(DESTDIR)/$(prefix); fi
	@if test ! -d $(DESTDIR)/$(bindir) ;then mkdir -p $(DESTDIR)/$(bindir); fi
	@if test ! -d $(DESTDIR)/$(mandir); then mkdir -p $(DESTDIR)/$(mandir);fi
	@if test ! -d $(DESTDIR)/$(mandir)/man1; then mkdir -p $(DESTDIR)/$(mandir)/man1;fi
	@if test ! -d $(DESTDIR)/$(datadir) ; then mkdir -p $(DESTDIR)/$(datadir);fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit ; then mkdir -p $(DESTDIR)/$(datadir)/yudit;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/data ;then mkdir -p $(DESTDIR)/$(datadir)/yudit/data;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/config ;then mkdir -p $(DESTDIR)/$(datadir)/yudit/config;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/fonts ;then mkdir -p $(DESTDIR)/$(datadir)/yudit/fonts;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/locale;then mkdir -p $(DESTDIR)/$(datadir)/yudit/locale;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/src;then mkdir -p $(DESTDIR)/$(datadir)/yudit/src;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/doc;then mkdir -p $(DESTDIR)/$(datadir)/yudit/doc;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/doc/de;then mkdir -p $(DESTDIR)/$(datadir)/yudit/doc/de;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/doc/ja;then mkdir -p $(DESTDIR)/$(datadir)/yudit/doc/ja;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/doc/hu;then mkdir -p $(DESTDIR)/$(datadir)/yudit/doc/hu;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/doc/yi;then mkdir -p $(DESTDIR)/$(datadir)/yudit/doc/yi;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/doc/es;then mkdir -p $(DESTDIR)/$(datadir)/yudit/doc/es;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/doc/fi;then mkdir -p $(DESTDIR)/$(datadir)/yudit/doc/fi;fi
	@if test ! -d $(DESTDIR)/$(datadir)/yudit/doc/cz;then mkdir -p $(DESTDIR)/$(datadir)/yudit/doc/cz;fi
	@for i in $(SUBDIRS); do \
		cd $$i ; $(MAKE) install; \
		if [ $$? != 0 ]; then \
			cd ..; \
			exit 1; \
		fi;  \
		cd ..; \
	done
	$(INSTALL_DATA) gnome-yudit.png $(DESTDIR)/$(datadir)/yudit/data
	$(INSTALL_DATA) yudit.properties $(DESTDIR)/$(datadir)/yudit/config
	$(INSTALL_DATA) doc/FAQ.TXT $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/de/FAQ.TXT $(DESTDIR)/$(datadir)/yudit/doc/de/FAQ.TXT
	$(INSTALL_DATA) doc/ja/FAQ.TXT $(DESTDIR)/$(datadir)/yudit/doc/ja/FAQ.TXT
	$(INSTALL_DATA) doc/hu/FAQ.TXT $(DESTDIR)/$(datadir)/yudit/doc/hu/FAQ.TXT
	$(INSTALL_DATA) doc/yi/FAQ.TXT $(DESTDIR)/$(datadir)/yudit/doc/yi/FAQ.TXT
	$(INSTALL_DATA) doc/es/FAQ.TXT $(DESTDIR)/$(datadir)/yudit/doc/es/FAQ.TXT
	$(INSTALL_DATA) doc/fi/FAQ.TXT $(DESTDIR)/$(datadir)/yudit/doc/fi/FAQ.TXT
	$(INSTALL_DATA) doc/cz/FAQ.TXT $(DESTDIR)/$(datadir)/yudit/doc/cz/FAQ.TXT
	$(INSTALL_DATA) README.TXT $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) COPYING.TXT $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/HOWTO-freehand.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/HOWTO-rovasiras.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/TestPage.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/my-format.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/Yudit.bidi.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/UTF-8-test.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/UTF-8-demo.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/HOWTO-japanese.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/HOWTO-devanagari.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/HOWTO-arabic.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/HOWTO-configure.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/HOWTO-keymap.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/HOWTO-tamil.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/HOWTO-windows.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) doc/HOWTO-malayalam.txt $(DESTDIR)/$(datadir)/yudit/doc
	$(INSTALL_DATA) fonts/README.TXT $(DESTDIR)/$(datadir)/yudit/fonts
	$(INSTALL_DATA) fonts/yudit.ttf $(DESTDIR)/$(datadir)/yudit/fonts
	@echo "---------------------------------------------------"
	@echo "Everything is installed. You can use @bindir@/yudit"
	@echo "Have fun!"
	@echo "Gaspar - gsinai@yudit.org."
	@echo "---------------------------------------------------"