-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
124 lines (109 loc) · 3.46 KB
/
Makefile.am
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
## Process this file with automake to produce Makefile.in
#
# Copyright (C) 1987-2015 by Jeffery P. Hansen
# Copyright (C) 2015-2019 by Andrey V. Skvortsov
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
#
# List of directories that contain data files necessary for tkgate to run.
#
TKG_DATADIRS=scripts bindings doc gdf images locale primitives vlib vpd test
#
# List of data which will be included in distribution
#
TKG_DISTITEMS=$(TKG_DATADIRS) pkg-comment pkg-descr
#
# Subdirectories in which more makefiles can be found
#
SUBDIRS = src
#
# List of data files in this directory that should be included with a tkgate distribution.
#
dist_pkgdata_DATA = site-preferences
#
# List of man pages for tkgate
#
dist_man_MANS = tkgate.1 verga.1 gmac.1
#
# List of common documentation files
#
dist_doc_DATA = README README.verga COPYING TODO ChangeLog
#
# Desktop file
#
desktopdir = $(datadir)/applications
dist_desktop_DATA = tkgate.desktop
#
# Pixmap files
#
pixmapdir = $(datadir)/pixmaps
dist_pixmap_DATA = tkgate.png tkgate.xpm
#
# List of header files that should not be automatically installed
#
noinst_HEADERS = options.h
#
# Update the release data for this compilation
#
release:
echo 'char *release_date = "'`(LANG=; date "+%b %d %Y")`'";' > $(srcdir)/src/tkgate/release.c
dist-hook:
@echo Packaging data files...
@for d in $(TKG_DISTITEMS); do \
cp -pR $(srcdir)/$$d $(distdir); \
done
tests:
cd test/verga;./runtests.sh
#
# Make sure the libexec directory has symbolic links to the 'tkgate' and 'verga' executables.
#
install-exec-hook:
@echo Creating symbolic links in libexec...
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/libexec
dir2=$(DESTDIR)$(bindir) ; \
dir1=$(DESTDIR)$(pkgdatadir)/libexec ; \
$(am__relativize) ; relpath=$$reldir ; \
for p in tkgate verga; do \
f=`echo "$$p" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
rm -f $(DESTDIR)$(pkgdatadir)/libexec/$$p; \
$(LN_S) $$relpath/$$f $(DESTDIR)$(pkgdatadir)/libexec/$$p; \
done
#
# Copy all the data files we need
#
install-data-hook:
@echo Installing data files...
@for d in $(TKG_DATADIRS); do \
cp -pR $(srcdir)/$$d $(DESTDIR)$(pkgdatadir); \
done
rm -f $(DESTDIR)$(pkgdatadir)/locale/*.sh
rm -f $(DESTDIR)$(pkgdatadir)/locale/*.pot
rm -f $(DESTDIR)$(pkgdatadir)/locale/*.tcl
rm -f $(DESTDIR)$(pkgdatadir)/locale/*/config.txt
rm -f $(DESTDIR)$(pkgdatadir)/locale/*/*.po
uninstall-local:
@echo Uninstalling data files...
@for d in $(TKG_DATADIRS); do \
chmod -R u+w $(DESTDIR)$(pkgdatadir)/$$d; \
rm -rf $(DESTDIR)$(pkgdatadir)/$$d; \
done
@echo Uninstalling libexec links...
chmod -R u+w $(DESTDIR)$(pkgdatadir)/libexec
rm -f $(DESTDIR)$(pkgdatadir)/libexec/tkgate
rm -f $(DESTDIR)$(pkgdatadir)/libexec/verga
rmdir $(DESTDIR)$(pkgdatadir)/libexec