-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
78 lines (65 loc) · 2.29 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
## Process this file with automake to produce makefile.in
##
##
## Copyright (C) 1995-2007, Hewlett-Packard Development Company, L.P.
##
## 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.
##
##
SUBDIRS=macros src doc
bin_SCRIPTS=ski-config
if WITH_X_INTERFACE
appdefaultsdir=/etc/X11/app-defaults
appdefaults_DATA=XSki
# This is a bit of a hack. appdefaults_DATA doesn't create a target
# for each argument, hence this doesn't get built. We therefore add it
# to BUILT_SOURCES conditionally -ianw
BUILD_XSKI=XSki
XSki:
@$(LN_S) $(srcdir)/XSki.$(HOST_OS) $@
else
BUILD_XSKI=
endif
BUILT_SOURCES=ski-config $(BUILD_XSKI)
EXTRA_DIST=ski.spec.in XSki.freebsd XSki.hpux XSki.linux \
misc/bskinc misc/ia64fmt ChangeLog.2007
.PHONY: snapshot
release:
$(MAKE) distcheck
snapshot:
$(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"`
distclean-hook:
rm -f XSki
dist-hook: ski.spec
cp ski.spec $(distdir)
install-exec-hook:
$(LN_S) -f ski $(DESTDIR)/$(bindir)/bski;
$(LN_S) -f ski.1 $(DESTDIR)/$(mandir)/man1/bski.1;
$(LN_S) -f ski $(DESTDIR)/$(bindir)/bskinc;
$(LN_S) -f ski.1 $(DESTDIR)/$(mandir)/man1/bskinc.1;
if WITH_X_INTERFACE
$(LN_S) -f ski $(DESTDIR)/$(bindir)/xski;
$(LN_S) -f ski.1 $(DESTDIR)/$(mandir)/man1/xski.1;
endif
if WITH_GTK_INTERFACE
$(LN_S) -f ski $(DESTDIR)/$(bindir)/gski
$(LN_S) -f ski.1 $(DESTDIR)/$(mandir)/man1/gski.1
endif
rpm: $(PACKAGE).spec dist
build_dir=`cd .; pwd` ; \
rpm --define "_topdir $$build_dir" --define "_sourcedir $$build_dir" \
--define "_srcrpmdir $$build_dir" --define "_builddir $$build_dir" \
--define "_rpmdir $$build_dir" --define "_target_cpu @host_cpu@" \
-ba --clean $(PACKAGE).spec