forked from eugeni/openclass
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (26 loc) · 1.01 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
PACKAGE = openclass
VERSION = 0.4
version:
echo "version='$(VERSION)'" > version.py
install:
mkdir -p $(DESTDIR)/usr/share/openclass/iface
mkdir -p $(DESTDIR)/usr/bin
install -m755 openclass-teacher $(DESTDIR)/usr/bin/openclass-teacher
install -m755 openclass-student $(DESTDIR)/usr/bin/openclass-student
cp -a teacher.py student.py skins openclass $(DESTDIR)/usr/share/openclass/
cp -a iface/machine.png iface/machine_off.png iface/openclass.png $(DESTDIR)/usr/share/openclass/iface/
# locale
$(MAKE) -C po $@
# desktop
mkdir -p $(DESTDIR)/usr/share/applications/
install -m644 openclass-teacher.desktop $(DESTDIR)/usr/share/applications/
install -m644 openclass-student.desktop $(DESTDIR)/usr/share/applications/
clean:
$(MAKE) -C po $@
cleandist:
rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2
tar:
tar cfj $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION)
rm -rf $(PACKAGE)-$(VERSION)
gitdist: cleandist
git archive --prefix $(PACKAGE)-$(VERSION)/ HEAD | bzip2 -9 > $(PACKAGE)-$(VERSION).tar.bz2