mirror of
https://github.com/abakh/nbsdgames.git
synced 2025-02-02 15:07:27 -05:00
shortening the Makefile
This commit is contained in:
parent
5a1ae538d0
commit
04e8559947
19
Makefile
19
Makefile
@ -12,7 +12,7 @@ LIBS=$(LIBS_PKG_CONFIG) -lm
|
|||||||
|
|
||||||
ALL= nbsdgames jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel tugow
|
ALL= nbsdgames jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel tugow
|
||||||
SCORE_FILES= pipes_scores jewels_scores miketron_scores muncher_scores fisher_scores darrt_scores tugow_scores
|
SCORE_FILES= pipes_scores jewels_scores miketron_scores muncher_scores fisher_scores darrt_scores tugow_scores
|
||||||
|
SRC!=echo *.c *.h
|
||||||
all: $(ALL)
|
all: $(ALL)
|
||||||
|
|
||||||
scorefiles:
|
scorefiles:
|
||||||
@ -22,21 +22,8 @@ scorefiles:
|
|||||||
manpages:
|
manpages:
|
||||||
cp man/* $(DESTDIR)$(MAN_DIR)
|
cp man/* $(DESTDIR)$(MAN_DIR)
|
||||||
|
|
||||||
# Games which only need config.h
|
$(ALL): $(SRC) config.h common.h
|
||||||
sudoku mines reversi checkers battleship rabbithole sos fifteen redsquare snakeduel: config.h
|
$(CC) $(CFLAGS) $@.c $(LDFLAGS) $(LIBS) -o $@
|
||||||
$(CC) $(CFLAGS) $@.c $< $(LDFLAGS) $(LIBS) -o $@
|
|
||||||
|
|
||||||
# Games which need config.h and common.h
|
|
||||||
jewels pipes fisher muncher miketron darrt: config.h common.h
|
|
||||||
$(CC) $(CFLAGS) $@.c $< $(LDFLAGS) $(LIBS) -o $@
|
|
||||||
|
|
||||||
# Games which only need common.h
|
|
||||||
tugow: common.h
|
|
||||||
$(CC) $(CFLAGS) $@.c $< $(LDFLAGS) $(LIBS) -o $@
|
|
||||||
|
|
||||||
# Games which only need themselves
|
|
||||||
memoblocks nbsdgames:
|
|
||||||
$(CC) $(CFLAGS) $@.c $< $(LDFLAGS) $(LIBS) -o $@
|
|
||||||
|
|
||||||
menu:
|
menu:
|
||||||
cp nbsdgames.desktop $(DESTIDR)$(PREFIX)/usr/share/applications
|
cp nbsdgames.desktop $(DESTIDR)$(PREFIX)/usr/share/applications
|
||||||
|
Loading…
Reference in New Issue
Block a user