forked from dschmenk/gsport-debian
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·46 lines (41 loc) · 883 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PACKAGE=gsport
VERSION=0.3.1
DIST=$(PACKAGE)-$(VERSION)
DISTDIR=./$(DIST)
gsport:
-rm src/vars
ln -s vars_pi src/vars
$(MAKE) -C src
-rm src/vars
ln -s vars_fbrpilinux src/vars
$(MAKE) -C src
clean:
-rm $(PACKAGE)_*
-rm *.deb
-rm -rf $(DISTDIR)
-rm *.tar.gz
-rm src/vars
install:
cp gsportx $(DESTDIR)/usr/bin
cp gsportfb $(DESTDIR)/usr/bin
cp -R ./files/* $(DESTDIR)
dist:
$(MAKE) clean
mkdir $(DISTDIR)
-chmod 777 $(DISTDIR)
cp COPYING.txt $(DISTDIR)
cp config.template $(DISTDIR)
cp GSport.html $(DISTDIR)
cp Makefile $(DISTDIR)
cp -R ./debian $(DISTDIR)
cp -R ./doc $(DISTDIR)
cp -R ./files $(DISTDIR)
cp -R ./src $(DISTDIR)
cp -R ./lib $(DISTDIR)
-chmod -R a+r $(DISTDIR)
tar czf $(DIST).tar.gz $(DISTDIR)
deb:
$(MAKE) dist
mv $(DIST).tar.gz $(PACKAGE)_$(VERSION).orig.tar.gz
cd $(DIST); debuild -us -uc
rm $(PACKAGE)_$(VERSION).orig.tar.gz