-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.am
94 lines (82 loc) · 2.77 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
## Process this file with automake to produce Makefile.in
#
# Copyright (C) 1987-2007 by Jeffery P. Hansen
#
# 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., 675 Mass Ave, Cambridge, MA 02139, 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 povray primitives vlib vpd test
#
# 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=README README.verga COPYING INSTALL TODO site-preferences license.txt pkg-comment pkg-descr
#
# List of man pages for tkgate
#
dist_man_MANS = tkgate.1 verga.1 gmac.1
#
# 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_DATADIRS); 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
@for p in tkgate verga; do \
f=`echo "$$p" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
rm -f $(DESTDIR)$(pkgdatadir)/libexec/$$p; \
$(LN_S) `(cd $(DESTDIR)$(bindir);pwd)`/$$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
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