forked from moiji-mobile/smsc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 1.42 KB
/
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
31
32
33
34
35
# Clean stuff
all: build_clean package
NAME=OsmoSmsc
RDEPS_PARSE=`grep -r ^Depends debian/control | head -1 | sed -e "s/,//g" -e "s/Depends: //g" -e "s/\\\$${.*} //g" -e "s/ pharo.*\[.*\]//g"`
RDEPS="${RDEPS_PARSE} pharo-vm-core:i386"
.PHONY: build_clean install-rdepends
build_clean:
@echo going to clean
git clean -dxf .
install-rdepends:
echo "deb http://download.opensuse.org/repositories/home:/zecke23/Debian_8.0/ ./" > /etc/apt/sources.list.d/obs.list
wget -O - http://download.opensuse.org/repositories/home:/zecke23/Debian_8.0/Release.key | apt-key add -
apt-get update
DEBIAN_FRONTEND=noninteractive echo $(RDEPS) | xargs apt-get install -y --no-install-recommends --force-yes
install:
mkdir -p $(DESTDIR)/usr/share/osmo-smsc/links
mkdir -p $(DESTDIR)/usr/share/osmo-smsc/scripts
mkdir -p $(DESTDIR)/usr/share/osmo-smsc/template/inserter/launch.d
mkdir -p $(DESTDIR)/var/lib/pharo-images
# install the image
install -m 0644 $(NAME).image $(DESTDIR)/var/lib/pharo-images/$(NAME).image
install -m 0644 $(NAME).changes $(DESTDIR)/var/lib/pharo-images/$(NAME).changes
install -m 0755 template.runit $(DESTDIR)/usr/share/osmo-smsc/template/runit
install -m 0644 function.inserter $(DESTDIR)/usr/share/osmo-smsc/scripts/inserter
install -m 0644 function.syslog $(DESTDIR)/usr/share/osmo-smsc/scripts/syslog
# launch examples
install -m 0644 inserter.launch $(DESTDIR)/usr/share/osmo-smsc/template/inserter/image-launch.conf