Skip to content

Commit

Permalink
Check if DISTNAME subdir has a Makefile
Browse files Browse the repository at this point in the history
When trying to install platform specific scripts make sure the
platform specific DISTNAME subdir has a Makefile (which also
checks if the dir even exists.) This should help for platforms
like altlinux where we set the DISTNAME but for which we don't
have any platform specific scripts.
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent e75cb33 commit ae2a8df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions platforms/Makefile.in
Expand Up @@ -24,31 +24,31 @@ all:
done

install:
@if test x$(DISTNAME) != x ; then \
@if test x$(DISTNAME) != x -a -f $(DISTNAME)/Makefile ; then \
(cd $(DISTNAME); \
$(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
fi

install-autostart:
@if test x$(DISTNAME) != x ; then \
@if test x$(DISTNAME) != x -a -f $(DISTNAME)/Makefile ; then \
(cd $(DISTNAME); \
$(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
fi

install-autostart-dir:
@if test x$(DISTNAME) != x ; then \
@if test x$(DISTNAME) != x -a -f $(DISTNAME)/Makefile ; then \
(cd $(DISTNAME); \
$(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
fi

install-autostart-fd:
@if test x$(DISTNAME) != x ; then \
@if test x$(DISTNAME) != x -a -f $(DISTNAME)/Makefile ; then \
(cd $(DISTNAME); \
$(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
fi

install-autostart-sd:
@if test x$(DISTNAME) != x ; then \
@if test x$(DISTNAME) != x -a -f $(DISTNAME)/Makefile ; then \
(cd $(DISTNAME); \
$(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
fi
Expand Down

0 comments on commit ae2a8df

Please sign in to comment.