diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -1,5 +1,9 @@ +NAME = subsurface +CAPITALIZED_NAME = Subsurface +TARGET = $(NAME) + include Configure.mk -VERSION=3.0.2 +VERSION=3.1 CC=gcc CFLAGS=-Wall -Wno-pointer-sign -g $(CLCFLAGS) -DGSEAL_ENABLE @@ -16,14 +20,13 @@ DESKTOPDIR = $(DATADIR)/applications ICONPATH = $(DATADIR)/icons/hicolor ICONDIR = $(ICONPATH)/scalable/apps MANDIR = $(DATADIR)/man/man1 -XSLTDIR = $(DATADIR)/subsurface/xslt +XSLTDIR = $(DATADIR)/$(NAME)/xslt gtk_update_icon_cache = gtk-update-icon-cache -f -t $(ICONPATH) -NAME = subsurface ICONFILE = $(NAME)-icon.svg DESKTOPFILE = $(NAME).desktop MANFILES = $(NAME).1 -XSLTFILES = xslt/*.xslt +XSLTFILES = xslt/*.xslt xslt/*.xsl EXTRA_FLAGS = $(QTCXXFLAGS) $(GTKCFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) \ $(LIBDIVECOMPUTERCFLAGS) \ @@ -75,7 +78,7 @@ SOURCES = \ $(RESFILE) -RESOURCES = subsurface.qrc +RESOURCES = $(NAME).qrc ifneq ($(SQLITE3FLAGS),) EXTRA_FLAGS += -DSQLITE3 $(SQLITE3FLAGS) @@ -97,9 +100,9 @@ ifneq (,$(filter $(UNAME),linux kfreebsd gnu)) SOURCES += linux.c else ifeq ($(UNAME), darwin) SOURCES += macos.c - MACOSXINSTALL = /Applications/Subsurface.app + MACOSXINSTALL = /Applications/$(CAPITALIZED_NAME).app MACOSXFILES = packaging/macosx - MACOSXSTAGING = $(MACOSXFILES)/Subsurface.app + MACOSXSTAGING = $(MACOSXFILES)/$(CAPITALIZED_NAME).app INFOPLIST = $(MACOSXFILES)/Info.plist INFOPLISTINPUT = $(INFOPLIST).in LDFLAGS += -headerpad_max_install_names @@ -107,8 +110,8 @@ else SOURCES += windows.c WINDOWSSTAGING = ./packaging/windows WINMSGDIRS=$(addprefix share/locale/,$(shell ls po/*.po | sed -e 's/po\/\(..\)_.*/\1\/LC_MESSAGES/')) - NSIINPUTFILE = $(WINDOWSSTAGING)/subsurface.nsi.in - NSIFILE = $(WINDOWSSTAGING)/subsurface.nsi + NSIINPUTFILE = $(WINDOWSSTAGING)/$(NAME).nsi.in + NSIFILE = $(WINDOWSSTAGING)/$(NAME).nsi MAKENSIS = makensis XSLTDIR = .\\xslt endif |