-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile.am
More file actions
64 lines (44 loc) · 1.25 KB
/
Copy pathMakefile.am
File metadata and controls
64 lines (44 loc) · 1.25 KB
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
## Process this file with automake to produce Makefile.in
SUBDIRS = src scripts doc man
DIST_SUBDIRS = $(SUBDIRS)
dist_doc_DATA = \
README \
LICENSE \
GPL-3.0.txt \
AUTHORS \
ChangeLog \
TODO
EXTRA_DIST = \
aclocal.m4 \
configure \
ltmain.sh \
jamrouter.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
jamrouter-$(PACKAGE_VERSION).tar.gz: dist
jamrouter-version:
scripts/version-sh
jamrouter.spec: jamrouter-version jamrouter.spec.in
rpm: jamrouter-$(PACKAGE_VERSION).tar.gz jamrouter.spec
rpmbuild=$$(mktemp -d -t rpmbuild-jamrouter.XXXXXXX); src=$$(pwd); \
cp jamrouter-$(PACKAGE_VERSION).tar.gz "$$rpmbuild"; \
cp jamrouter.spec $$rpmbuild/jamrouter.spec; \
pushd "$$rpmbuild" && \
rpmbuild \
--define "_topdir $$PWD" \
--define "_sourcedir $$PWD" \
--define "_specdir $$PWD" \
--define "_srcrpmdir $$PWD" \
--define "_rpmdir $$PWD" \
-ba jamrouter.spec && \
popd; \
mv "$$rpmbuild"/$$(arch)/*.rpm . && mv "$$rpmbuild"/*.src.rpm . && \
rm -rf "$$rpmbuild" && ls -1 *.rpm