-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
78 lines (66 loc) · 2.35 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
PACKAGE=gytha
VERSION=0.9
DESTDIR=
DATADIR=$(DESTDIR)/usr/share/games/gytha
all:
@echo $(PACKAGE)-$(VERSION)
echo "To start this Netrek client, run the file gytha.py"
clean:
rm -rf debian/gytha build-stamp debian/files
distclean:
dist:
mkdir $(PACKAGE)-$(VERSION)
cp -p ChangeLog Makefile COPYING INSTALL $(PACKAGE)-$(VERSION)/
cp -p gytha.png gytha.desktop $(PACKAGE)-$(VERSION)/
mkdir $(PACKAGE)-$(VERSION)/images
cp -p images/*.png $(PACKAGE)-$(VERSION)/images/
cp -p images/*.jpg $(PACKAGE)-$(VERSION)/images/
mkdir $(PACKAGE)-$(VERSION)/sounds
cp -p sounds/*.ogg $(PACKAGE)-$(VERSION)/sounds/
mkdir $(PACKAGE)-$(VERSION)/gytha
cp -p gytha/*.py $(PACKAGE)-$(VERSION)/gytha
cp -p gytha.py $(PACKAGE)-$(VERSION)/
cp -p gytha.sh $(PACKAGE)-$(VERSION)/
chmod +x $(PACKAGE)-$(VERSION)/gytha.py
GZIP=--best tar cfz $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
rm -rf $(PACKAGE)-$(VERSION)
install:
mkdir -p $(DATADIR)/gytha
cp -pr gytha $(DATADIR)/
cp -p gytha.py $(DATADIR)/
chmod +x $(DATADIR)/gytha.py
mkdir -p $(DESTDIR)/usr/games
cp -p gytha.sh $(DESTDIR)/usr/games/gytha
chmod +x $(DESTDIR)/usr/games/gytha
mkdir -p $(DESTDIR)/usr/share/applications
cp -p gytha.desktop $(DESTDIR)/usr/share/applications
chmod +r $(DESTDIR)/usr/share/applications
mkdir -p $(DESTDIR)/usr/share/gytha/images
cp -p gytha.png $(DESTDIR)/usr/share/gytha/
chmod +r $(DESTDIR)/usr/share/gytha/gytha.png
cp -p images/*.png $(DESTDIR)/usr/share/gytha/images/
chmod +r $(DESTDIR)/usr/share/gytha/images/*.png
cp -p images/*.jpg $(DESTDIR)/usr/share/gytha/images/
chmod +r $(DESTDIR)/usr/share/gytha/images/*.jpg
mkdir -p $(DESTDIR)/usr/share/gytha/sounds
cp -p sounds/*.ogg $(DESTDIR)/usr/share/gytha/sounds/
chmod +r $(DESTDIR)/usr/share/gytha/sounds/*.ogg
mkdir -p $(DESTDIR)/usr/share/doc/gytha
cp ChangeLog $(DESTDIR)/usr/share/doc/gytha
#
# Maintainer's Debian packaging section
#
DEBIAN_VERSION=$(shell head -1 debian/changelog|cut -f2 -d\(|cut -f1 -d\))
DEBIAN_PACKAGE=$(shell head -1 debian/changelog|cut -f1 -d\ )
package:
fakeroot dpkg-buildpackage -us -uc
newpackage:
python2.6 setup.py bdist_deb
TARGET=~/public_html/external/mine/gytha/
upload:
cp $(PACKAGE)-$(VERSION).tar.gz $(TARGET)
mv ../$(DEBIAN_PACKAGE)_$(DEBIAN_VERSION)*.deb $(TARGET)
cp doc/index.phtml doc/*.jpg $(TARGET)
update:
(cd $(TARGET);rm -f db;make)
release: dist package upload update