-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (17 loc) · 958 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
PREFIX ?= /usr/local
all: simple-gsmgui gsmgui-ring.sh gsmgui-start-audio.sh gsmgui-hungup.sh start-gsmgui.sh start-gsmgui-chooser.sh simple_vibra
simple-gsmgui: gsmgui.vala gsmmodem.vala network_chooser.vala main.vala
valac $^ -o simple-gsmgui --pkg gtk+-2.0 --pkg posix -g -X -O2
simple_vibra: simple_vibra.c
%.sh: %.in
sed "s-PREFIX-$(PREFIX)-g" <$^ >$@
install:
install -m 755 -d $(DESTDIR)$(PREFIX)/bin
install -m 755 -t $(DESTDIR)$(PREFIX)/bin simple-gsmgui gsmgui-ring.sh gsmgui-start-audio.sh gsmgui-hungup.sh start-gsmgui-chooser.sh start-gsmgui.sh simple_vibra
install -m 755 -d $(DESTDIR)$(PREFIX)/share/gsmgui
install -m 644 -t $(DESTDIR)$(PREFIX)/share/gsmgui voice-4 voice
install -m 755 -d $(DESTDIR)$(PREFIX)/share/applications
install -m 644 -t $(DESTDIR)$(PREFIX)/share/applications simple-gsmgui.desktop simple-gsmgui-chooser.desktop
clean:
rm -f simple-gsmgui simple_vibra gsmgui-start-audio.sh
.PHONY: install clean all