forked from mit-ll/emane-dlep-layer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
65 lines (52 loc) · 1.58 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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS= \
include \
src \
src/xml
cleantar:
@(rm -f emanedleplayer*.tar.gz)
edit = sed \
-e 's|@VERSION[@]|$(VERSION)|g'
clean-local: cleantar cleandeb
-rm -rf .rpmbuild
-rm -rf .debbuild
-rm -f emanedleplayer.spec
-rm -f debian/changelog
EXTRA_DIST = \
AUTHORS \
COPYING \
ChangeLog \
NEWS \
emanedleplayer.spec.in \
SPONSOR \
debian
if HAVE_DEB
deb: clean-local dist-gzip
mkdir -p .debbuild
cp -f $(PACKAGE)-$(VERSION).tar.gz .debbuild
cd .debbuild && tar xzf $(PACKAGE)-$(VERSION).tar.gz
$(edit) .debbuild/$(PACKAGE)-$(VERSION)/debian/changelog.in > \
.debbuild/$(PACKAGE)-$(VERSION)/debian/changelog
cd .debbuild/$(PACKAGE)-$(VERSION) && dpkg-buildpackage -F -us -uc
@echo "============================================================"
@echo "debs located in .debbuild"
cleandeb:
dh_clean
else
cleandeb:
endif
if HAVE_RPMBUILD
rpm: clean-local dist-gzip
$(edit) emanedleplayer.spec.in > emanedleplayer.spec
mkdir -p .rpmbuild/BUILD \
.rpmbuild/SPECS \
.rpmbuild/SOURCES \
.rpmbuild/SRPMS \
.rpmbuild/RPMS/$(RPMARCH) \
.rpmbuild/tmp
cp -f $(PACKAGE)-$(VERSION).tar.gz .rpmbuild/SOURCES
rpmbuild --clean -bb $(top_srcdir)/emanedleplayer.spec --define "_topdir $$PWD/.rpmbuild" --define "_tmppath $$PWD/.rpmbuild/tmp"
@echo "============================================================"
@echo "RPMs located in .rpmbuild/RPMS and .rpmbuild/SRPMS"
endif
DISTCLEANFILES = debian/changelog