7
HOMEDIR = $(shell pwd)
DEFAULT = 4.0.3
YESDIR = $(shell echo $(@:install-%=%) | tr A-Z a-z)
NODIR = $(shell echo $(@:clean-%=%) | tr A-Z a-z)
install:
@$(MAKE) install-$(DEFAULT)   
install-%:
@cd $(HOMEDIR);\
if [ ! -e $(YESDIR) ]; then \
  echo "Library $(@:install-%=%) Version=$(YESDIR) does not exist"; \
elif [ -e $(YESDIR)/Install.sh ]; then \
    echo "Installing $(PKGNAM) version=$(YESDIR)" ; \
    cd $(YESDIR) ;\
    $(SHELL) Install.sh $(HOMEDIR) 1 ;\   
elif [ -e $(YESDIR)/Makefile ]; then \
    cd $(YESDIR); \
    $(MAKE); \
else \
    echo "Installation instruction for $(@:install-%=%) Version=$(YESDIR) does not exist"; \
fi;

the above makefile gives me the following error line 6: syntax error: unexpected end of file

apramc
  • 1,346
  • 1
  • 15
  • 30

1 Answers1

8

Remove trailing blanks in this line:

    $(SHELL) Install.sh $(HOMEDIR) 1 ;\   
Cyrus
  • 84,225
  • 14
  • 89
  • 153