--- Makefile +++ Makefile @@ -2,11 +2,11 @@ # # Please uncomment the appropriate settings -CC = gcc -CFLAGS = -Wall -DHAVE_GETOPT_LONG -LDFLAGS = -INSTALLPATH = $(DESTDIR)/usr/local/bin -MANPATH = $(DESTDIR)/usr/man/man1 +CC ?= gcc +CFLAGS += -Wall -DHAVE_GETOPT_LONG +LDFLAGS += +INSTALLPATH = $(DESTDIR)/usr/bin +MANPATH = $(DESTDIR)/usr/share/man/man1 PROGNAME = proxytunnel OBJ = proxytunnel.o \ @@ -27,6 +27,6 @@ @rm -f $(PROGNAME) $(OBJ) install: - mkdir -p $(INSTALLPATH) + mkdir -p $(INSTALLPATH) $(MANPATH) install -g root -m755 -o root $(PROGNAME) $(INSTALLPATH)/$(PROGNAME) install -g root -m644 -o root debian/$(PROGNAME).1 $(MANPATH)/$(PROGNAME).1