wok-6.x view bastet/stuff/install.patch @ rev 21586

updated nspr and nspr-dev (4.10.8 -> 4.21)
author Hans-G?nter Theisgen
date Mon May 20 13:58:55 2019 +0100 (2019-05-20)
parents
children
line source
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -1,15 +1,26 @@
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 PROGNAME=bastet
19 BOOST_PO?=-lboost_program_options
20 -LDFLAGS+=-lncurses $(BOOST_PO)
21 +LDFLAGS+=-lncurses -ltinfo $(BOOST_PO)
22 #CXXFLAGS+=-ggdb -Wall
23 CXXFLAGS+=-DNDEBUG -Wall
24 #CXXFLAGS+=-pg
25 #LDFLAGS+=-pg
27 -all: $(PROGNAME) $(TESTS:.cpp=)
28 +all: depend $(PROGNAME) $(TESTS:.cpp=)
30 Test: $(SOURCES:.cpp=.o) $(TESTS:.cpp=.o)
31 $(CXX) -ggdb -o $(TESTS:.cpp=) $(SOURCES:.cpp=.o) $(TESTS:.cpp=.o) $(LDFLAGS)
32 @@ -27,3 +38,13 @@
34 mrproper: clean
35 rm -f *~
36 +
37 +install:
38 + install -d $(DESTDIR)${bindir} $(DESTDIR)${scoredir} $(DESTDIR)${appdir} \
39 + $(DESTDIR)${icon16dir} $(DESTDIR)${icon48dir} $(DESTDIR)${mandir}
40 + install -m0755 bastet $(DESTDIR)${bindir}
41 + install -m0666 /dev/null $(DESTDIR)${scoredir}/bastet.scores2
42 + install -m0644 bastet.desktop $(DESTDIR)${appdir}
43 + install -m0644 bastet16.png $(DESTDIR)${icon16dir}/bastet.png
44 + install -m0644 bastet48.png $(DESTDIR)${icon48dir}/bastet.png
45 + install -m0644 bastet.6 $(DESTDIR)${mandir}