From: Keith Packard Date: Mon, 18 May 2009 06:18:09 +0000 (-0700) Subject: Provide install target X-Git-Tag: 0.4~1 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=71d1689759829f1bc8550f1a4d8c9f2dc90b2ab4;ds=sidebyside Provide install target --- diff --git a/aoview/Makefile b/aoview/Makefile index 1941b080..a2878b0e 100644 --- a/aoview/Makefile +++ b/aoview/Makefile @@ -5,6 +5,8 @@ WARN= -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested CFLAGS=$(INCLUDES) -O0 -g $(WARN) -DAOVIEW_VERSION='"$(VERSION)"' LIBS=$(shell pkg-config --libs $(MODULES)) -lm +BIN=/usr/local/bin + SRC = \ aoview_main.c \ aoview_dev.c \ @@ -35,5 +37,10 @@ aoview_main.o: aoview_glade.h clean: rm -f $(OBJ) $(PROG) +install: $(BIN)/aoview + +$(BIN)/aoview: aoview + install aoview $(BIN) + aoview_glade.h: aoview.glade sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/"/' $< > $@