1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
CONFIG_EXISTS := $(wildcard config.mk)
all: ncursesw
clean: test_config
cd src/ncursesw ; make clean
distclean: test_config clean
rm fizmo
ifeq ($(strip $(CONFIG_EXISTS)),)
ifeq ($(strip $(CONFIG_FILE)),)
include config.default.mk
test_config:
@echo
@echo No file \"config.mk\" was found, using \"config.default.mk\".
@echo
cp config.default.mk config.mk
else
include $(CONFIG_FILE)
test_config:
ln -s $(CONFIG_FILE) config.mk
@true
endif
else
include config.mk
test_config:
@true
endif
ifeq ($(FIZMO_BIN_DIR),)
FIZMO_BIN_DIR = games
endif
install: ncursesw
mkdir -p $(INSTALL_PREFIX)/$(FIZMO_BIN_DIR) $(INSTALL_PREFIX)/share/man/man6
install fizmo $(INSTALL_PREFIX)/$(FIZMO_BIN_DIR)
install src/man/fizmo.6 $(INSTALL_PREFIX)/share/man/man6
ncursesw: test_config
cd src/ncursesw ; make fizmo
mv src/ncursesw/fizmo .
|