diff options
author | Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> | 2011-09-27 18:43:53 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-27 10:48:52 -0700 |
commit | 1bf28b68c9dc9b929b1372b79920311a9c10e4cc (patch) | |
tree | 270c60f75c7850de40cf0adc0545356602495df4 /Makefile | |
parent | 2a8f7ab78f8d00b699b683b122ad2cf0ddc094b6 (diff) | |
download | subsurface-1bf28b68c9dc9b929b1372b79920311a9c10e4cc.tar.gz |
A Makefile 'clean' target is quite standard.
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -6,6 +6,7 @@ INSTALL=install prefix = $(HOME) DESTDIR = $(prefix)/bin +NAME = subsurface LIBDIVECOMPUTERDIR = /usr/local LIBDIVECOMPUTERINCLUDES = $(LIBDIVECOMPUTERDIR)/include/libdivecomputer @@ -27,12 +28,12 @@ OBJS = main.o dive.o profile.o info.o equipment.o divelist.o \ parse-xml.o save-xml.o libdivecomputer.o print.o uemis.o \ gtk-gui.o -subsurface: $(OBJS) - $(CC) $(LDFLAGS) -o subsurface $(OBJS) $(LIBS) +$(NAME): $(OBJS) + $(CC) $(LDFLAGS) -o $(NAME) $(OBJS) $(LIBS) -install: subsurface +install: $(NAME) $(INSTALL) -d -m 755 '$(DESTDIR)' - $(INSTALL) subsurface '$(DESTDIR)' + $(INSTALL) $(NAME) '$(DESTDIR)' parse-xml.o: parse-xml.c dive.h $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c `xml2-config --cflags` parse-xml.c @@ -75,3 +76,6 @@ gtk-gui.o: gtk-gui.c dive.h display.h divelist.h display-gtk.h libdivecomputer.h uemis.o: uemis.c uemis.h $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0` -c uemis.c + +clean: + rm -f $(OBJS) *~ $(NAME) |