X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=Makefile;h=be44007ff83df88d5a075aeee070e73e896c7785;hb=3fbc2de085bda1b5bbeefcfe3053e0b0d37aa1e0;hp=862a5cbd0261b93b237ea869b1fe32fe88e4b556;hpb=9463ca1f1c52ba1fd4b17946a209742685815c68;p=ext%2Fsubsurface.git diff --git a/Makefile b/Makefile index 862a5cb..be44007 100644 --- a/Makefile +++ b/Makefile @@ -8,14 +8,17 @@ INSTALL=install # prefix = $(HOME) prefix = /usr DESTDIR = $(prefix)/bin -DESKTOPDIR = $(prefix)/share/applications -ICONPATH = $(prefix)/share/icons/hicolor +DATADIR = $(prefix)/share +DESKTOPDIR = $(DATADIR)/applications +ICONPATH = $(DATADIR)/icons/hicolor ICONDIR = $(ICONPATH)/scalable/apps +MANDIR = $(DATADIR)/man/man1 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(ICONPATH) NAME = subsurface ICONFILE = $(NAME).svg DESKTOPFILE = $(NAME).desktop +MANFILES = $(NAME).1 # find libdivecomputer; we don't trust pkg-config here given how young # libdivecomputer still is - so we check /usr/local and /usr and then we @@ -63,6 +66,7 @@ install: $(NAME) $(INSTALL) -d -m 755 $(ICONDIR) $(INSTALL) $(ICONFILE) $(ICONDIR) $(gtk_update_icon_cache) + $(INSTALL) -m 644 $(MANFILES) $(MANDIR) parse-xml.o: parse-xml.c dive.h $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c `xml2-config --cflags` parse-xml.c