File: Makefile.in

package info (click to toggle)
audacity 1.2.4b-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 24,136 kB
  • ctags: 20,445
  • sloc: ansic: 139,567; cpp: 55,998; sh: 24,963; lisp: 3,772; makefile: 1,683; python: 272
file content (105 lines) | stat: -rw-r--r-- 2,772 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
105

INSTALL = @INSTALL@
exec_prefix= @exec_prefix@
prefix= @prefix@
BINDIR= @bindir@
DATADIR= @datadir@
MANDIR= @mandir@
ZIP = @ZIP@
AUDACITY_NAME = @AUDACITY_NAME@

.PHONY: all
all: audacity help/audacity.1.gz audacity-1.2-help.htb

.PHONY: audacity
audacity:
	$(MAKE) -C lib-src
	$(MAKE) -C src
	$(MAKE) -C locale

.PHONY: src/libaudacity.a
src/libaudacity.a:
	$(MAKE) -C src libaudacity.a

.PHONY: install
install: audacity
	# install the binary
	$(INSTALL) -d $(DESTDIR)$(BINDIR)
	$(INSTALL) -m 755 audacity $(DESTDIR)$(BINDIR)/$(AUDACITY_NAME)

	# install docs
	$(INSTALL) -d $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)
	-test -f audacity-1.2-help.htb && $(INSTALL) -m 644 audacity-1.2-help.htb \
		$(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/audacity-1.2-help.htb
	$(INSTALL) -d $(DESTDIR)$(DATADIR)/doc/$(AUDACITY_NAME)
	$(INSTALL) -m 644 README.txt $(DESTDIR)$(DATADIR)/doc/$(AUDACITY_NAME)/README.txt
	$(INSTALL) -m 644 LICENSE.txt $(DESTDIR)$(DATADIR)/doc/$(AUDACITY_NAME)/LICENSE.txt

	# install manpage
	$(INSTALL) -d $(DESTDIR)$(MANDIR)/man1
	-test -f help/audacity.1.gz && \
		$(INSTALL) -m 644 help/audacity.1.gz \
		$(DESTDIR)$(MANDIR)/man1/$(AUDACITY_NAME).1.gz

	# install nyquist
	$(INSTALL) -d $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/nyquist
	$(INSTALL) -m 644 nyquist/*.lsp $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/nyquist

	# install plug-ins
	$(INSTALL) -d $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/plug-ins
	$(INSTALL) -m 644 plug-ins/*.ny $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/plug-ins

	# install locales
	$(MAKE) -C locale install

uninstall:
	rm -rf $(BINDIR)/$(AUDACITY_NAME)
	rm -rf $(DATADIR)/doc/$(AUDACITY_NAME)
	rm -rf $(DATADIR)/$(AUDACITY_NAME)
	rm -rf $(MANDIR)/man1/$(AUDACITY_NAME).1.gz

	$(MAKE) -C locale uninstall

help/audacity.1.gz:
	# gzipping the file this way prevents audacity.1 from getting deleted
	cat help/audacity.1 | gzip -9 > help/audacity.1.gz

audacity-1.2-help.htb: help/wxhelp/*
	rm -f audacity-1.2-help.htb
	cd help/wxhelp && $(ZIP) ../../audacity-1.2-help.htb *.htm images/*.png *.hhc *.hhk *.hhp

dox:
	doxygen audacity.dox

check: src/libaudacity.a
	$(MAKE) -C tests check

dep:
	$(MAKE) -C src dep

clean:
	$(MAKE) -C lib-src clean
	$(MAKE) -C src clean
	$(MAKE) -C tests clean
	rm -f audacity-help.htb
	rm -f audacity-1.2-help.htb
	rm -f audacity
	rm -f help/audacity.1.gz

veryclean: clean
	rm -f Makefile src/Makefile lib-src/Makefile
	rm -f src/configunix.h
	rm -f `find . -name "*~"`
	rm -f `find . -name core`

distclean: clean
	$(MAKE) -C locale distclean
	$(MAKE) -C lib-src distclean
	$(MAKE) -C tests distclean

	rm -f Makefile src/Makefile lib-src/Makefile lib-src/allegro/Makefile
	rm -f src/.depend
	find . -name '.#*' | xargs rm -f
	rm -f locale/Makefile src/configunix.h
	rm -f config.log config.status config.cache