-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile.am
71 lines (50 loc) · 1.37 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
## Process this file with automake to produce Makefile.in
SUBDIRS = src help pixmaps themes patches samples midimaps misc scripts
dist_doc_DATA = \
README \
LICENSE \
GPL-3.0.txt \
AUTHORS \
ChangeLog \
TODO \
doc/ROADMAP \
doc/signal-diagram.txt \
doc/release-checklist.txt
#scriptsdir = scripts
#
#dist_scripts_SCRIPTS = \
# scripts/version-sh
EXTRA_DIST = \
aclocal.m4 \
configure \
ltmain.sh \
phasex.spec
#install-data-local:
# @$(NORMAL_INSTALL)
#uninstall-local:
# @$(NORMAL_UNINSTALL)
uninstall-hook:
test -d $(DESTDIR)$(pkgdatadir) && rmdir --ignore-fail-on-non-empty $(DESTDIR)$(pkgdatadir)
test -d $(DESTDIR)$(docdir) && rmdir $(DESTDIR)$(docdir)
distclean-local:
rm -f *~
rm -rf autom4te.cache
phasex-$(PACKAGE_VERSION).tar.gz: dist
phasex-version:
scripts/version-sh
phasex.spec: phasex-version phasex.spec.in
rpm: phasex-$(PACKAGE_VERSION).tar.gz phasex.spec
rpmbuild=$$(mktemp -d -t rpmbuild-phasex.XXXXXXX); src=$$(pwd); \
cp phasex-$(PACKAGE_VERSION).tar.gz "$$rpmbuild"; \
cp phasex.spec $$rpmbuild/phasex.spec; \
pushd "$$rpmbuild" && \
rpmbuild \
--define "_topdir $$PWD" \
--define "_sourcedir $$PWD" \
--define "_specdir $$PWD" \
--define "_srcrpmdir $$PWD" \
--define "_rpmdir $$PWD" \
-ba phasex.spec && \
popd; \
mv "$$rpmbuild"/$$(arch)/*.rpm . && mv "$$rpmbuild"/*.src.rpm . && \
rm -rf "$$rpmbuild" && ls -1 *.rpm