mirror of
https://github.com/abakh/nbsdgames.git
synced 2024-06-08 17:20:41 +00:00
Makefile: rename *_DIR -> *DIR
This matches convention better. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
f0f86e17f5
commit
49306e592d
23
Makefile
23
Makefile
|
@ -3,11 +3,10 @@
|
||||||
#-O3 --std=c99 -lcurses -DNO_MOUSE for NetBSD curses
|
#-O3 --std=c99 -lcurses -DNO_MOUSE for NetBSD curses
|
||||||
#adding --std=c99 makes warnings in GNU, and the blame is upon glibc feature test macros. my code is correct.
|
#adding --std=c99 makes warnings in GNU, and the blame is upon glibc feature test macros. my code is correct.
|
||||||
|
|
||||||
GAMES_DIR?=$(PREFIX)/usr/games
|
GAMESDIR?=$(PREFIX)/usr/games
|
||||||
SCORES_DIR?=$(PREFIX)/var/games
|
SCORESDIR?=$(PREFIX)/var/games
|
||||||
MAN_DIR?=$(PREFIX)/usr/share/man/man6
|
MANDIR?=$(PREFIX)/usr/share/man/man6
|
||||||
CFLAGS+= -Wno-unused-result -D SCORES_DIR=\"$(PREFIX)$(SCORES_DIR)\"
|
CFLAGS=-Wno-unused-result -DSCORES_DIR=\"$(PREFIX)$(SCORESDIR)\"
|
||||||
PKG-CONFIG?=pkg-config
|
|
||||||
LIBS=$(shell pkg-config --libs --cflags ncurses) -lm
|
LIBS=$(shell pkg-config --libs --cflags ncurses) -lm
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,11 +16,11 @@ SCORE_FILES= pipes_scores jewels_scores miketron_scores muncher_scores fisher_sc
|
||||||
all: $(ALL)
|
all: $(ALL)
|
||||||
|
|
||||||
scorefiles:
|
scorefiles:
|
||||||
for sf in $(SCORE_FILES); do touch $(DESTDIR)$(SCORES_DIR)/$$sf ; chmod 664 $(DESTDIR)$(SCORES_DIR)/$$sf; chown :games $(DESTDIR)$(SCORES_DIR)/$$sf ; done;
|
for sf in $(SCORE_FILES); do touch $(DESTDIR)$(SCORESDIR)/$$sf ; chmod 664 $(DESTDIR)$(SCORESDIR)/$$sf; chown :games $(DESTDIR)$(SCORESDIR)/$$sf ; done;
|
||||||
for game in $(ALL); do chown :games $(DESTDIR)$(GAMES_DIR)/$$game; chmod g $(DESTDIR)$(GAMES_DIR)/$$game ; done;
|
for game in $(ALL); do chown :games $(DESTDIR)$(GAMESDIR)/$$game; chmod g $(DESTDIR)$(GAMESDIR)/$$game ; done;
|
||||||
|
|
||||||
manpages:
|
manpages:
|
||||||
cp man/* $(DESTDIR)$(MAN_DIR)
|
cp man/* $(DESTDIR)$(MANDIR)
|
||||||
jewels: jewels.c config.h common.h
|
jewels: jewels.c config.h common.h
|
||||||
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LIBS) -o $@
|
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LIBS) -o $@
|
||||||
sudoku: sudoku.c config.h
|
sudoku: sudoku.c config.h
|
||||||
|
@ -66,9 +65,9 @@ menu:
|
||||||
clean:
|
clean:
|
||||||
for game in $(ALL); do rm $$game; done;
|
for game in $(ALL); do rm $$game; done;
|
||||||
uninstall:
|
uninstall:
|
||||||
for game in $(ALL); do rm $(GAMES_DIR)/$$game; rm $(MAN_DIR)/$$game.6.gz ;done;
|
for game in $(ALL); do rm $(GAMESDIR)/$$game; rm $(MANDIR)/$$game.6.gz ;done;
|
||||||
install: $(ALL)
|
install: $(ALL)
|
||||||
cp $(ALL) $(DESTDIR)/$(GAMES_DIR)
|
cp $(ALL) $(DESTDIR)/$(GAMESDIR)
|
||||||
test:
|
test:
|
||||||
for game in $(ALL); do ./$$game ;done;
|
for game in $(ALL); do ./$$game ;done;
|
||||||
|
|
||||||
|
@ -78,8 +77,8 @@ nb:
|
||||||
for game in $(ALL); do cp $$game nb$$game ;done;
|
for game in $(ALL); do cp $$game nb$$game ;done;
|
||||||
for manpage in $(ls man); do cp man/$$manpage man/nb$$manpage ;done;
|
for manpage in $(ls man); do cp man/$$manpage man/nb$$manpage ;done;
|
||||||
nbinstall: nb
|
nbinstall: nb
|
||||||
cp nb* $(DESTDIR)/$(GAMES_DIR)
|
cp nb* $(DESTDIR)/$(GAMESDIR)
|
||||||
nbmanpages: nb
|
nbmanpages: nb
|
||||||
cp man/nb* $(DESTDIR)/$(MAN_DIR)
|
cp man/nb* $(DESTDIR)/$(MANDIR)
|
||||||
nbclean:
|
nbclean:
|
||||||
for game in $(ALL); do rm nb$$game; done;
|
for game in $(ALL); do rm nb$$game; done;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user