forked from davewongillies/gmameui
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
83 lines (66 loc) · 1.94 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
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src data po
EXTRA_DIST = autogen.sh \
gmameui.desktop.in \
gmameui.png \
gmameui-screen.png \
gmameui-general.png \
gmameui.6 \
BUGS \
gmameui.spec.in \
gmameui.spec
Graphicsdir = $(datadir)/applications
Graphics_in_files = gmameui.desktop.in
Graphics_DATA = $(Graphics_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
pixmapdir = $(datadir)/pixmaps
pixmap_DATA = gmameui.png
icondir = $(datadir)/gmameui
icon_DATA = gmameui.png \
gmameui-general.png \
gmameui-screen.png
docdir = $(datadir)/doc/$(PACKAGE)
doc_DATA = BUGS NEWS COPYING AUTHORS README.md TODO ChangeLog
# not needed for rpm building
#rpmdir = /usr/src/rpm/SPECS
#rpm_DATA = gmameui.spec
man_MANS = gmameui.6
distclean-local:
-rm -rf autom4te.cache
install-data-local:
@$(NORMAL_INSTALL)
if test -d $(srcdir)/pixmaps; then \
$(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
for pixmap in $(srcdir)/pixmaps/*; do \
if test -f $$pixmap; then \
$(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
fi \
done \
fi
dist-hook:
rm -rf `find $(distdir) -name CVS`
if test -d pixmaps; then \
mkdir $(distdir)/pixmaps; \
for pixmap in pixmaps/*; do \
if test -f $$pixmap; then \
cp -p $$pixmap $(distdir)/pixmaps; \
fi \
done \
fi
release: dist rpm
mkdir -p release
rm -f release/*
mv -f rpmbuild/RPMS/*/* release/
mv -f rpmbuild/SRPMS/* release/
mv -f rpmbuild/SOURCES/* release/
rm -rf rpmbuild
pot:
make -C po update-po
rpm: build-rpm
build-rpm:
$(MAKE) $(PACKAGE).spec $(PACKAGE).spec.in
$(MAKE) dist
mkdir -p rpmbuild/{BUILD,RPMS/{noarch,athlon,i386,i486,i588,i686,x86_64},SOURCES,SPECS,SRPMS}
mv @PACKAGE@-@[email protected] rpmbuild/SOURCES/
unset MAKEFLAGS ; test ! -f $$HOME/.bashrc || . $$HOME/.bashrc; rpmbuild --define "_topdir $(PWD)/rpmbuild" --define "debug_package %{nil}" -ba @[email protected]