wok annotate bastet/stuff/install.patch @ rev 24924
Add as & asxxxx
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 13 10:27:34 2022 +0000 (2022-04-13) |
parents | |
children |
rev | line source |
---|---|
al@19275 | 1 --- a/Makefile |
al@19275 | 2 +++ b/Makefile |
al@19275 | 3 @@ -1,15 +1,26 @@ |
al@19275 | 4 +prefix = /usr |
al@19275 | 5 +exec_prefix = ${prefix} |
al@19275 | 6 +datarootdir = ${prefix}/share |
al@19275 | 7 +bindir = ${exec_prefix}/games |
al@19275 | 8 +mandir = ${datarootdir}/man/man6 |
al@19275 | 9 +appdir = ${datarootdir}/applications |
al@19275 | 10 +icondir = ${datarootdir}/icons/hicolor |
al@19275 | 11 +icon16dir = ${icondir}/16x16/apps |
al@19275 | 12 +icon48dir = ${icondir}/48x48/apps |
al@19275 | 13 +scoredir = /var/games |
al@19275 | 14 + |
al@19275 | 15 SOURCES=Ui.cpp Block.cpp Well.cpp BlockPosition.cpp Config.cpp BlockChooser.cpp BastetBlockChooser.cpp |
al@19275 | 16 MAIN=main.cpp |
al@19275 | 17 TESTS=Test.cpp |
al@19275 | 18 PROGNAME=bastet |
al@19275 | 19 BOOST_PO?=-lboost_program_options |
al@19275 | 20 -LDFLAGS+=-lncurses $(BOOST_PO) |
al@19275 | 21 +LDFLAGS+=-lncurses -ltinfo $(BOOST_PO) |
al@19275 | 22 #CXXFLAGS+=-ggdb -Wall |
al@19275 | 23 CXXFLAGS+=-DNDEBUG -Wall |
al@19275 | 24 #CXXFLAGS+=-pg |
al@19275 | 25 #LDFLAGS+=-pg |
al@19275 | 26 |
al@19275 | 27 -all: $(PROGNAME) $(TESTS:.cpp=) |
al@19275 | 28 +all: depend $(PROGNAME) $(TESTS:.cpp=) |
al@19275 | 29 |
al@19275 | 30 Test: $(SOURCES:.cpp=.o) $(TESTS:.cpp=.o) |
al@19275 | 31 $(CXX) -ggdb -o $(TESTS:.cpp=) $(SOURCES:.cpp=.o) $(TESTS:.cpp=.o) $(LDFLAGS) |
al@19275 | 32 @@ -27,3 +38,13 @@ |
al@19275 | 33 |
al@19275 | 34 mrproper: clean |
al@19275 | 35 rm -f *~ |
al@19275 | 36 + |
al@19275 | 37 +install: |
al@19275 | 38 + install -d $(DESTDIR)${bindir} $(DESTDIR)${scoredir} $(DESTDIR)${appdir} \ |
al@19275 | 39 + $(DESTDIR)${icon16dir} $(DESTDIR)${icon48dir} $(DESTDIR)${mandir} |
al@19275 | 40 + install -m0755 bastet $(DESTDIR)${bindir} |
al@19275 | 41 + install -m0666 /dev/null $(DESTDIR)${scoredir}/bastet.scores2 |
al@19275 | 42 + install -m0644 bastet.desktop $(DESTDIR)${appdir} |
al@19275 | 43 + install -m0644 bastet16.png $(DESTDIR)${icon16dir}/bastet.png |
al@19275 | 44 + install -m0644 bastet48.png $(DESTDIR)${icon48dir}/bastet.png |
al@19275 | 45 + install -m0644 bastet.6 $(DESTDIR)${mandir} |