summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-05-17 23:18:09 -0700
committerKeith Packard <keithp@keithp.com>2009-05-17 23:18:09 -0700
commit71d1689759829f1bc8550f1a4d8c9f2dc90b2ab4 (patch)
tree7fa16dce24b6f3a3e38aa6c62393209c6813edaa
parentf301b95e87c8ec1e3b58d595a05d486bede5e0c2 (diff)
Provide install target
-rw-r--r--aoview/Makefile7
1 files changed, 7 insertions, 0 deletions
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/$$/"/' $< > $@