Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (34 sloc) 1.37 KB
# Top-level Makefile for Dungeon Bash
GAME=dungeonbash
SRCGEN=srcgen
MAJVERS=1
MINVERS=131
PATCHVERS=0
PRERELEASE=
# To make a prerelease package, define the next rule
#PRERELEASE=+pr1
# The os.mk, dirs.mk, and permissions.mk files are where configuration should
# be set up.
include os.mk
include dirs.mk
include permissions.mk
include features.mk
all:
(cd src && make $(GAME)$(EXECUTABLE_SUFFIX) )
install: all
install -D -o $(games_user) -g $(games_group) -m $(suid_bin_mode) src/$(GAME)$(EXECUTABLE_SUFFIX) $(DESTDIR)$(games_exec_prefix)/$(GAME)$(EXECUTABLE_SUFFIX)
install -D -m $(man_mode) man/$(GAME).6 $(DESTDIR)$(man6dir)/$(GAME).6
install -D -m $(man_mode) man/dungeonbashrc.5 $(DESTDIR)$(man5dir)/dungeonbashrc.5
install -d -o $(games_user) -g $(games_group) -m $(PLAYGROUNDMODE) $(DESTDIR)$(PLAYGROUND)
install -d -o $(games_user) -g $(games_group) -m $(PLAYGROUNDMODE) $(DESTDIR)$(PLAYGROUND)/save
install -d -m $(GLOBALCFGDIRMODE) $(DESTDIR)$(GLOBALCFGDIR)
# archive builds a source code archive.
archive: distclean
(cd .. && ln -s dungeonbash dungeonbash-$(MAJVERS).$(MINVERS).$(PATCHVERS)$(PRERELEASE) )
(cd .. && tar cvzf dungeonbash-$(MAJVERS).$(MINVERS).$(PATCHVERS)$(PRERELEASE).tar.gz -h dungeonbash-$(MAJVERS).$(MINVERS).$(PATCHVERS)$(PRERELEASE)/* )
# distclean removes
distclean:
(cd src && make distclean)
clean:
(cd src && make clean)
# vim:noexpandtab:ts=8
Something went wrong with that request. Please try again.