forked from williamweston/phasex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
54 lines (41 loc) · 1.14 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
## Process this file with automake to produce Makefile.in
SUBDIRS = src help pixmaps themes patches samples midimaps misc
dist_doc_DATA = \
README \
LICENSE \
GPL-3.0.txt \
AUTHORS \
ChangeLog \
TODO \
doc/ROADMAP \
doc/signal-diagram.txt
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
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