--- Makefile.orig 2007-04-22 13:42:22.000000000 +0200 +++ Makefile 2009-06-15 09:28:29.000000000 +0200 @@ -2,21 +2,21 @@ # If you change destination of executables, remember to change # startup script (init.d/sms3) too. -BINDIR=/usr/local/bin +BINDIR=%%PREFIX%%/bin VERSION=$(shell grep package_version src/version.h | cut -f2) -compile: - cd src && $(MAKE) -$(MAKEFLAGS) +all: + cd src && $(MAKE) $(MAKEFLAGS) -install: compile - ./install.sh $(BINDIR) +install: + $(SH) ./install.sh $(BINDIR) uninstall: - ./uninstall.sh $(BINDIR) + $(SH) ./uninstall.sh $(BINDIR) clean: - cd src && $(MAKE) -$(MAKEFLAGS) clean + cd src && $(MAKE) $(MAKEFLAGS) clean -package: compile clean - ./package.sh +package: clean + $(SH) ./package.sh