Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (26 sloc) 1.01 KB
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