Blame view

Makefile.in 3.25 KB
72c536f8   Mario Lang   Imported Upstream...
1
2
3
4
###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
#          text mode) for a blind person using a refreshable braille display.
#
ec859a60   samuel thibault   New upstream vers...
5
# Copyright (C) 1995-2018 by The BRLTTY Developers.
72c536f8   Mario Lang   Imported Upstream...
6
7
8
9
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
ec859a60   samuel thibault   New upstream vers...
10
11
12
# GNU Lesser General Public License, as published by the Free Software
# Foundation; either version 2.1 of the License, or (at your option) any
# later version. Please see the file LICENSE-LGPL for details.
72c536f8   Mario Lang   Imported Upstream...
13
#
ca6019f1   Mario Lang   Imported Upstream...
14
# Web Page: http://brltty.com/
72c536f8   Mario Lang   Imported Upstream...
15
16
17
18
#
# This software is maintained by Dave Mielke <dave@mielke.cc>.
###############################################################################

a80ccd3b   samuel thibault   Imported Upstream...
19
all install uninstall install-documents:
72c536f8   Mario Lang   Imported Upstream...
20
21
	cd $(PGM_DIR) && $(MAKE) $@

a80ccd3b   samuel thibault   Imported Upstream...
22
23
install-messages uninstall-messages:
	cd $(MSG_DIR) && $(MAKE) $(@:-messages=)
be26d4ea   Mario Lang   Imported Upstream...
24

46c840f8   Mario Lang   Imported Upstream...
25
26
27
install-systemd uninstall-systemd:
	cd Autostart/Systemd && $(MAKE) $(@:-systemd=)

67e7bfbc   samuel thibault   New upstream vers...
28
29
30
install-udev uninstall-udev:
	cd Autostart/Udev && $(MAKE) $(@:-udev=)

ec859a60   samuel thibault   New upstream vers...
31
32
33
install-appstream uninstall-appstream:
	cd Autostart/AppStream && $(MAKE) $(@:-appstream=)

d8488191   samuel thibault   Imported Upstream...
34
ARCHIVE_NAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
a80ccd3b   samuel thibault   Imported Upstream...
35
36
37
38
39
TAR_EXTENSION = tar
GZIP_EXTENSION = gz
BZIP2_EXTENSION = bz2
ZIP_EXTENSION = zip
XZ_EXTENSION = xz
72c536f8   Mario Lang   Imported Upstream...
40

a80ccd3b   samuel thibault   Imported Upstream...
41
42
SRC_TAR = $(ARCHIVE_NAME).$(TAR_EXTENSION)
$(SRC_TAR):
72c536f8   Mario Lang   Imported Upstream...
43
	$(SRC_TOP)mktar $(SRC_TOP) $(ARCHIVE_NAME) $@
a80ccd3b   samuel thibault   Imported Upstream...
44
src-tar: $(SRC_TAR)
72c536f8   Mario Lang   Imported Upstream...
45

a80ccd3b   samuel thibault   Imported Upstream...
46
47
48
49
SRC_TAR_GZIP = $(SRC_TAR).$(GZIP_EXTENSION)
$(SRC_TAR_GZIP): $(SRC_TAR)
	gzip -9 -c $(SRC_TAR) >$@
src-tar-gzip: $(SRC_TAR_GZIP)
72c536f8   Mario Lang   Imported Upstream...
50

a80ccd3b   samuel thibault   Imported Upstream...
51
52
53
54
SRC_TAR_BZIP2 = $(SRC_TAR).$(BZIP2_EXTENSION)
$(SRC_TAR_BZIP2): $(SRC_TAR)
	bzip2 -9 -c $(SRC_TAR) >$@
src-tar-bzip2: $(SRC_TAR_BZIP2)
72c536f8   Mario Lang   Imported Upstream...
55

a80ccd3b   samuel thibault   Imported Upstream...
56
57
58
59
SRC_TAR_XZ = $(SRC_TAR).$(XZ_EXTENSION)
$(SRC_TAR_XZ): $(SRC_TAR)
	xz -9 -c $(SRC_TAR) >$@
src-tar-xz: $(SRC_TAR_XZ)
72c536f8   Mario Lang   Imported Upstream...
60

a80ccd3b   samuel thibault   Imported Upstream...
61
62
63
64
65
rpm: $(SRC_TAR_GZIP)
	$(SRC_TOP)mkrpm $(SRC_TAR_GZIP)

SRC_ZIP = $(ARCHIVE_NAME).$(ZIP_EXTENSION)
$(SRC_ZIP):
be26d4ea   Mario Lang   Imported Upstream...
66
	$(SRC_TOP)mkzip $(SRC_TOP) $(ARCHIVE_NAME) $@
a80ccd3b   samuel thibault   Imported Upstream...
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
src-zip: $(SRC_ZIP)

BIN_DIR = `pwd`/BinTree
bin-tree:
	$(INSTALL_DIRECTORY) $(BIN_DIR)
	$(MAKE) install INSTALL_ROOT=$(BIN_DIR)

BIN_TAR = $(ARCHIVE_NAME).$(HOST_OS).$(HOST_CPU).$(TAR_EXTENSION)
$(BIN_TAR): bin-tree
	tar -C $(BIN_DIR) -c -f $@ .
bin-tar: $(BIN_TAR)

BIN_TAR_GZIP = $(BIN_TAR).$(GZIP_EXTENSION)
$(BIN_TAR_GZIP): $(BIN_TAR)
	gzip -9 -c $(BIN_TAR) >$@
bin-tar-gzip: $(BIN_TAR_GZIP)

BIN_TAR_BZIP2 = $(BIN_TAR).$(BZIP2_EXTENSION)
$(BIN_TAR_BZIP2): $(BIN_TAR)
	bzip2 -9 -c $(BIN_TAR) >$@
bin-tar-bzip2: $(BIN_TAR_BZIP2)

BIN_TAR_XZ = $(BIN_TAR).$(XZ_EXTENSION)
$(BIN_TAR_XZ): $(BIN_TAR)
	xz -9 -c $(BIN_TAR) >$@
bin-tar-xz: $(BIN_TAR_XZ)
be26d4ea   Mario Lang   Imported Upstream...
93

46c840f8   Mario Lang   Imported Upstream...
94
95
96
97
98
ITERATE = \
   -for directory in \
   $(PGM_DIR) \
   $(MSG_DIR) \
   Autostart/Systemd \
67e7bfbc   samuel thibault   New upstream vers...
99
   Autostart/Udev \
ec859a60   samuel thibault   New upstream vers...
100
   Autostart/AppStream \
46c840f8   Mario Lang   Imported Upstream...
101
102
103
   Android/Application \
   ; do (cd $$directory && $(MAKE) $@); done

72c536f8   Mario Lang   Imported Upstream...
104
105
clean::
	$(ITERATE)
c100d13a   Mario Lang   Imported Upstream...
106
107
	-rm -f -- *.$(TAR_EXTENSION) *.$(GZIP_EXTENSION) *.$(BZIP2_EXTENSION) *.$(XZ_EXTENSION) *.$(ZIP_EXTENSION) *.rpm
	-rm -f -r -- $(BIN_DIR)
d8488191   samuel thibault   Imported Upstream...
108

72c536f8   Mario Lang   Imported Upstream...
109
110
111
distclean:: clean
	-cd $(DOC_DIR) && $(MAKE) $@
	$(ITERATE)
a80ccd3b   samuel thibault   Imported Upstream...
112
	-rm -f brltty.spec
46c840f8   Mario Lang   Imported Upstream...
113
	-rm -f Autostart/Systemd/brltty@.service
72c536f8   Mario Lang   Imported Upstream...
114
	-rm -fr autom4te*.cache
90c515c4   Mario Lang   Imported Upstream...
115
	-rm -f config.log config.cache config.status
d8488191   samuel thibault   Imported Upstream...
116
	-rm -f config.mk config.h config.sh
90c515c4   Mario Lang   Imported Upstream...
117
	-rm -f forbuild.log forbuild.cache forbuild.status
c100d13a   Mario Lang   Imported Upstream...
118
	-rm -f forbuild.mk forbuild.h