1
0
mirror of https://github.com/abakh/nbsdgames.git synced 2024-12-04 14:46:22 -05:00

improved handling of scorefiles

This commit is contained in:
Your Name 2021-04-24 13:16:11 +04:30
parent 375d551487
commit 2709e03a4a

View File

@ -5,26 +5,26 @@ CFLAGS+= -O3 -lncurses -Wno-unused-result
#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?=/usr/games GAMES_DIR?=/usr/games
SCORES_DIR?=/usr/games SCORES_DIR?=/var/games
all: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel all: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel
scorefiles: scorefiles:
touch $(SCORES_DIR)/pp_scores touch $(SCORES_DIR)/pipes_scores
touch $(SCORES_DIR)/jw_scores touch $(SCORES_DIR)/jewels_scores
touch $(SCORES_DIR)/mt_scores touch $(SCORES_DIR)/miketron_scores
touch $(SCORES_DIR)/mnch_scores touch $(SCORES_DIR)/muncher_scores
touch $(SCORES_DIR)/fsh_scores touch $(SCORES_DIR)/fisher_scores
touch $(SCORES_DIR)/drt_scores touch $(SCORES_DIR)/darrt_scores
chmod 666 $(SCORES_DIR)/pp_scores chmod 666 $(SCORES_DIR)/pipes_scores
chmod 666 $(SCORES_DIR)/jw_scores chmod 666 $(SCORES_DIR)/jewels_scores
chmod 666 $(SCORES_DIR)/mt_scores chmod 666 $(SCORES_DIR)/miketron_scores
chmod 666 $(SCORES_DIR)/mnch_scores chmod 666 $(SCORES_DIR)/muncher_scores
chmod 666 $(SCORES_DIR)/fsh_scores chmod 666 $(SCORES_DIR)/fisher_scores
chmod 666 $(SCORES_DIR)/drt_scores chmod 666 $(SCORES_DIR)/darrt_scores
jewels: jewels.c config.h jewels: jewels.c config.h common.h
$(CC) jewels.c $(CFLAGS) -o ./jewels $(CC) jewels.c $(CFLAGS) -o ./jewels
sudoku: sudoku.c config.h sudoku: sudoku.c config.h
$(CC) sudoku.c $(CFLAGS) -lm -o ./sudoku $(CC) sudoku.c $(CFLAGS) -lm -o ./sudoku
mines: mines.c config.h mines: mines.c config.h
$(CC) mines.c $(CFLAGS) -o ./mines $(CC) mines.c $(CFLAGS) -o ./mines
@ -44,15 +44,15 @@ fifteen: fifteen.c config.h
$(CC) fifteen.c $(CFLAGS) -o ./fifteen $(CC) fifteen.c $(CFLAGS) -o ./fifteen
memoblocks: memoblocks.c memoblocks: memoblocks.c
$(CC) memoblocks.c $(CFLAGS) -o ./memoblocks $(CC) memoblocks.c $(CFLAGS) -o ./memoblocks
fisher: fisher.c config.h fisher: fisher.c config.h common.h
$(CC) fisher.c $(CFLAGS) -o ./fisher $(CC) fisher.c $(CFLAGS) -o ./fisher
muncher: muncher.c config.h muncher: muncher.c config.h common.h
$(CC) muncher.c $(CFLAGS) -o ./muncher $(CC) muncher.c $(CFLAGS) -o ./muncher
miketron: miketron.c config.h miketron: miketron.c config.h common.h
$(CC) miketron.c $(CFLAGS) -o ./miketron $(CC) miketron.c $(CFLAGS) -o ./miketron
redsquare: redsquare.c config.h redsquare: redsquare.c config.h
$(CC) redsquare.c $(CFLAGS) -o ./redsquare $(CC) redsquare.c $(CFLAGS) -o ./redsquare
darrt: darrt.c config.h darrt: darrt.c config.h common.h
$(CC) darrt.c $(CFLAGS) -lm -o ./darrt $(CC) darrt.c $(CFLAGS) -lm -o ./darrt
snakeduel: snakeduel.c config.h snakeduel: snakeduel.c config.h