Provide install target
authorKeith Packard <keithp@keithp.com>
Mon, 18 May 2009 06:18:09 +0000 (23:18 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 18 May 2009 06:18:09 +0000 (23:18 -0700)
aoview/Makefile

index 1941b080a4026ff67a67db699d46a14b1ee2897c..a2878b0e6d93d8a436e220c3a0468001d60340eb 100644 (file)
@@ -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
 
 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 \
 SRC = \
        aoview_main.c \
        aoview_dev.c \
@@ -35,5 +37,10 @@ aoview_main.o: aoview_glade.h
 clean:
        rm -f $(OBJ) $(PROG)
 
 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/$$/"/' $< > $@
 aoview_glade.h: aoview.glade
        sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/"/' $< > $@