wok-next view bastet/stuff/patches/install.patch @ rev 21382
updated nbd (3.3 -> 3.20)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 17:27:00 2020 +0100 (2020-04-16) |
parents | |
children |
line source
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -1,3 +1,14 @@
4 +prefix = /usr
5 +exec_prefix = ${prefix}
6 +datarootdir = ${prefix}/share
7 +bindir = ${exec_prefix}/games
8 +mandir = ${datarootdir}/man/man6
9 +appdir = ${datarootdir}/applications
10 +icondir = ${datarootdir}/icons/hicolor
11 +icon16dir = ${icondir}/16x16/apps
12 +icon48dir = ${icondir}/48x48/apps
13 +scoredir = /var/games
14 +
15 SOURCES=Ui.cpp Block.cpp Well.cpp BlockPosition.cpp Config.cpp BlockChooser.cpp BastetBlockChooser.cpp
16 MAIN=main.cpp
17 TESTS=Test.cpp
18 @@ -9,7 +20,7 @@
19 #CXXFLAGS+=-pg
20 #LDFLAGS+=-pg
22 -all: $(PROGNAME) $(TESTS:.cpp=)
23 +all: depend $(PROGNAME) $(TESTS:.cpp=)
25 Test: $(SOURCES:.cpp=.o) $(TESTS:.cpp=.o)
26 $(CXX) -ggdb -o $(TESTS:.cpp=) $(SOURCES:.cpp=.o) $(TESTS:.cpp=.o) $(LDFLAGS)
27 @@ -27,3 +38,13 @@
29 mrproper: clean
30 rm -f *~
31 +
32 +install:
33 + install -d $(DESTDIR)${bindir} $(DESTDIR)${scoredir} $(DESTDIR)${appdir} \
34 + $(DESTDIR)${icon16dir} $(DESTDIR)${icon48dir} $(DESTDIR)${mandir}
35 + install -m0755 bastet $(DESTDIR)${bindir}
36 + install -m0666 /dev/null $(DESTDIR)${scoredir}/bastet.scores2
37 + install -m0644 bastet.desktop $(DESTDIR)${appdir}
38 + install -m0644 bastet16.png $(DESTDIR)${icon16dir}/bastet.png
39 + install -m0644 bastet48.png $(DESTDIR)${icon48dir}/bastet.png
40 + install -m0644 bastet.6 $(DESTDIR)${mandir}