Commit 7b270a53 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Christophe Massiot

Add install and uninstall target (adapted to be used also for debian packaging)

parent 44b76540
...@@ -10,6 +10,8 @@ LDFLAGS_DVBLAST += -ldvbpsi -lpthread ...@@ -10,6 +10,8 @@ LDFLAGS_DVBLAST += -ldvbpsi -lpthread
OBJ_DVBLAST = dvblast.o util.o dvb.o udp.o asi.o demux.o output.o en50221.o comm.o OBJ_DVBLAST = dvblast.o util.o dvb.o udp.o asi.o demux.o output.o en50221.o comm.o
OBJ_DVBLASTCTL = util.o dvblastctl.o OBJ_DVBLASTCTL = util.o dvblastctl.o
BIN = $(DESTDIR)/usr/bin
all: dvblast dvblastctl all: dvblast dvblastctl
$(OBJ_DVBLAST) $(OBJ_DVBLASTCTL): Makefile dvblast.h en50221.h comm.h version.h asi.h $(OBJ_DVBLAST) $(OBJ_DVBLASTCTL): Makefile dvblast.h en50221.h comm.h version.h asi.h
...@@ -20,4 +22,11 @@ dvblast: $(OBJ_DVBLAST) ...@@ -20,4 +22,11 @@ dvblast: $(OBJ_DVBLAST)
dvblastctl: $(OBJ_DVBLASTCTL) dvblastctl: $(OBJ_DVBLASTCTL)
clean: clean:
-rm -f dvblast dvblastctl $(OBJ_DVBLAST) $(OBJ_DVBLASTCTL) @rm -f dvblast dvblastctl $(OBJ_DVBLAST) $(OBJ_DVBLASTCTL)
install: all
@install -d $(BIN)
@install dvblast dvblastctl $(BIN)
unistall:
@rm $(BIN)/dvblast $(BIN)/dvblastctl
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment