-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
80 lines (65 loc) · 1.69 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
## Process this file with automake to produce Makefile.in
SUBDIRS = _MathLib _NwnLib _NscLib _NmcLib nwnnsscomp nwnmdlcomp
AM_CXXFLAGS = -fno-default-inline
CLEANFILES = \
config.h.in~
EXTRA_DIST = \
README-1.2.html \
win32_config.h \
NWNTools.sln \
NWNTools.suo \
nwntools.ebuild \
Save \
_ExpatLib \
nwntreasure \
nwnexplorer
dist-hook:
rm -rf `find $(distdir) -type d -name CVS`
MAINTAINERCLEANFILES = \
INSTALL \
Makefile.in \
aclocal.m4 \
config.guess \
config.h.in \
config.sub \
configure \
depcomp \
install-sh \
missing \
mkinstalldirs
RELEASE = @RELEASE@
$(distdir).tar.bz2:
$(MAKE) dist-bzip2
if EBUILD
$(distdir)-r$(RELEASE).ebuild.tar.bz2: nwntools.ebuild $(distdir).tar.bz2
-rm -rf portage
mkdir -p portage/app-games/nwntools
cp nwntools.ebuild portage/app-games/nwntools/$(distdir)-r$(RELEASE).ebuild
mkdir -p portage/distfiles
cp $(distdir).tar.bz2 portage/distfiles
PORTDIR=portage DISTDIR=portage/distfiles $(EBUILD) portage/app-games/nwntools/$(distdir)-r$(RELEASE).ebuild digest
cd portage && $(AMTAR) chof - app-games | bzip2 -9 -c > ../$(distdir)-r$(RELEASE).ebuild.tar.bz2
-rm -rf portage
dist-ebuild: $(distdir)-r$(RELEASE).ebuild.tar.bz2
endif
if RPMBUILD
$(distdir)-$(RELEASE).src.rpm: nwntools.spec $(distdir).tar.bz2
-rm -f $@
$(RPMBUILD) \
--define="_sourcedir ." \
--define="_srcrpmdir ." \
-bs nwntools.spec
$(distdir)-$(RELEASE).%.rpm: nwntools.spec $(distdir).tar.bz2
-rm -f $@
$(RPMBUILD) \
--define="_sourcedir ." \
--define="_rpmdir ." \
--define="_builddir `pwd`" \
--target=$* \
--clean \
-bb nwntools.spec
mv $*/$@ .
-rmdir $*
dist-srpm: $(distdir)-$(RELEASE).src.rpm
dist-rpm: $(distdir)-$(RELEASE).$(host_cpu).rpm
endif