diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-07-16 20:20:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-07-16 20:20:37 +0200 |
commit | 208b380090d98c56947ad15a0ee9e3d0d5ea2151 (patch) | |
tree | 6fcc2a0cb00a4995ac0c1b5a53127a1610bcd710 /sal | |
parent | e0f7e213af28c8397bcc69b007a3c88248287a5f (diff) |
echo -e is not POSIX (and unknown to Mac OS X)
Change-Id: Id55d2028e44bfea57cd8d6c0d7085f5f6f2c77ed
Diffstat (limited to 'sal')
-rw-r--r-- | sal/CustomTarget_sal_allheaders.mk | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sal/CustomTarget_sal_allheaders.mk b/sal/CustomTarget_sal_allheaders.mk index b008a3ce6908..d59fb05a697b 100644 --- a/sal/CustomTarget_sal_allheaders.mk +++ b/sal/CustomTarget_sal_allheaders.mk @@ -33,20 +33,20 @@ $(call gb_CustomTarget_get_target,sal/allheaders) : \ $(sal_allheaders_DIR)/sal_allheaders.hxx # dependency on Package_inc.mk should ensure this is updated whenever a new public header is added -$(sal_allheaders_DIR)/sal_allheaders.hxx :| $(sal_allheaders_DIR)/.dir $(SRCDIR)/sal/Package_inc.mk +$(sal_allheaders_DIR)/sal_allheaders.hxx : CustomTarget_sal_allheaders.mk \ + | $(sal_allheaders_DIR)/.dir $(SRCDIR)/sal/Package_inc.mk $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1) - echo '// Generated list of all sal/ includes' > $@ - echo '#ifdef WNT' >> $@ - echo '#include <windows.h>' >> $@ - echo '#endif' >> $@ - echo -e \ - $(foreach file, $(wildcard $(SRCDIR)/sal/inc/*.h) $(wildcard $(SRCDIR)/sal/inc/*.hxx) \ - $(wildcard $(SRCDIR)/sal/inc/*/*.h) $(wildcard $(SRCDIR)/sal/inc/*/*.hxx) \ - $(wildcard $(SRCDIR)/sal/inc/*/*/*.h) $(wildcard $(SRCDIR)/sal/inc/*/*/*.hxx) \ - $(wildcard $(SRCDIR)/sal/inc/*/*/*/*.h) $(wildcard $(SRCDIR)/sal/inc/*/*/*/*.hxx), \ - $(if $(findstring /win32/, $(file)), '#ifdef WNT\n') \ - '#include <$(subst $(SRCDIR)/sal/inc/,,$(file))>\n' \ - $(if $(findstring /win32/, $(file)), '#endif // WNT\n') \ - ) >> $@ + printf '// Generated list of all sal/ includes\n' > $@ + printf '#ifdef WNT\n' >> $@ + printf '#include <windows.h>\n' >> $@ + printf '#endif\n' >> $@ + $(foreach file, $(wildcard $(SRCDIR)/sal/inc/*.h) $(wildcard $(SRCDIR)/sal/inc/*.hxx) \ + $(wildcard $(SRCDIR)/sal/inc/*/*.h) $(wildcard $(SRCDIR)/sal/inc/*/*.hxx) \ + $(wildcard $(SRCDIR)/sal/inc/*/*/*.h) $(wildcard $(SRCDIR)/sal/inc/*/*/*.hxx) \ + $(wildcard $(SRCDIR)/sal/inc/*/*/*/*.h) $(wildcard $(SRCDIR)/sal/inc/*/*/*/*.hxx), \ + $(if $(findstring /win32/, $(file)), printf '#ifdef WNT\n' >> $@ &&) \ + printf '#include <%s>\n' $(subst $(SRCDIR)/sal/inc/,,$(file)) >> $@ && \ + $(if $(findstring /win32/, $(file)), printf '#endif // WNT\n' >> $@ &&) \ + ) : # vim: set noet sw=4 ts=4: |