Skip to content

Commit

Permalink
Deb building works
Browse files Browse the repository at this point in the history
  • Loading branch information
gjedeer committed Aug 15, 2020
1 parent 9e80833 commit d4e40c9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Expand Up @@ -10,10 +10,14 @@ DSO_LDFLAGS += $(shell pkg-config --libs $(DEPS))
OBJECTS=$(SOURCES:.c=.o)
INCLUDES = $(wildcard *.h)
PYTHON = /usr/bin/env python3
INSTALL = install -C
INSTALL_MKDIR = $(INSTALL) -d -m 755

prefix ?= /usr
bindir ?= $(prefix)/bin

# Targets
all: tuntox
all: tuntox tuntox_nostatic

gitversion.h: FORCE
@if [ -f .git/HEAD ] ; then echo " GEN $@"; echo "#define GITVERSION \"$(shell git rev-parse HEAD)\"" > $@; fi
Expand Down Expand Up @@ -41,6 +45,7 @@ clean:
rm -f *.o tuntox cscope.out gitversion.h tox_bootstrap.h

install: tuntox_nostatic
cp tuntox_nostatic $(DESTDIR)/bin/tuntox
$(INSTALL_MKDIR) -d $(DESTDIR)$(bindir)
cp tuntox_nostatic $(DESTDIR)$(bindir)/tuntox

.PHONY: all clean tuntox

0 comments on commit d4e40c9

Please sign in to comment.