-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (23 loc) · 882 Bytes
/
Makefile
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
VERSION=`head -1 debian/changelog | sed -Ee 's/.*\(([^\)]+)\).*/\1/'`
ERLDIR=`erl -eval 'io:format("~s", [code:root_dir()])' -s init stop -noshell`/lib/shoutcast-$(VERSION)
DEBIANREPO=/apps/erlyvideo/debian/public
DESTROOT=$(CURDIR)/debian/erlang-shoutcast
all:
erl -make
clean:
rm -f ebin/*
rm -f erl_crash.dump
install:
mkdir -p $(DESTROOT)$(ERLDIR)/ebin
mkdir -p $(DESTROOT)$(ERLDIR)/src
mkdir -p $(DESTROOT)$(ERLDIR)/include
install -c -m 644 ebin/*.beam $(DESTROOT)$(ERLDIR)/ebin/
install -c -m 644 src/* $(DESTROOT)$(ERLDIR)/src/
debian:
dpkg-buildpackage -rfakeroot -D -i -I -S -sa
dput erly ../erlang-shoutcast_$(VERSION)_source.changes
debuild -us -uc
cp ../erlang-shoutcast_$(VERSION)*.deb $(DEBIANREPO)/binary/
rm ../erlang-shoutcast_$(VERSION)*
(cd $(DEBIANREPO); dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz)
.PHONY: debian