diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-07-16 20:46:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-07-16 20:46:14 +0200 |
commit | 1715093a08a6d7a0196ad9acb42775b88b5ebe4b (patch) | |
tree | 3346db577662f6a3786b82413061b98b767af7bb /salhelper | |
parent | 208b380090d98c56947ad15a0ee9e3d0d5ea2151 (diff) |
More: echo -e is not POSIX (and unknown to Mac OS X)
Change-Id: I8fdfbebd9fd4bf19b57ec83689116c6fc77227e6
Diffstat (limited to 'salhelper')
-rw-r--r-- | salhelper/CustomTarget_salhelper_allheaders.mk | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/salhelper/CustomTarget_salhelper_allheaders.mk b/salhelper/CustomTarget_salhelper_allheaders.mk index f760426ccde7..bc11fca9b5da 100644 --- a/salhelper/CustomTarget_salhelper_allheaders.mk +++ b/salhelper/CustomTarget_salhelper_allheaders.mk @@ -33,17 +33,18 @@ $(call gb_CustomTarget_get_target,salhelper/allheaders) : \ $(salhelper_allheaders_DIR)/salhelper_allheaders.hxx # dependency on Package_inc.mk should ensure this is updated whenever a new public header is added -$(salhelper_allheaders_DIR)/salhelper_allheaders.hxx :| $(salhelper_allheaders_DIR)/.dir $(SRCDIR)/salhelper/Package_inc.mk +$(salhelper_allheaders_DIR)/salhelper_allheaders.hxx : \ + CustomTarget_salhelper_allheaders.mk \ + | $(salhelper_allheaders_DIR)/.dir $(SRCDIR)/salhelper/Package_inc.mk $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1) - echo '// Generated list of all salhelper/ includes' > $@ - echo -e \ - $(foreach file, $(wildcard $(SRCDIR)/salhelper/inc/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*.hxx) \ - $(wildcard $(SRCDIR)/salhelper/inc/*/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*/*.hxx) \ - $(wildcard $(SRCDIR)/salhelper/inc/*/*/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*/*/*.hxx) \ - $(wildcard $(SRCDIR)/salhelper/inc/*/*/*/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*/*/*/*.hxx), \ - $(if $(findstring /win32/, $(file)), '#ifdef _WIN32\n') \ - '#include <$(subst $(SRCDIR)/salhelper/inc/,,$(file))>\n' \ - $(if $(findstring /win32/, $(file)), '#endif // _WIN32\n') \ - ) >> $@ + printf '// Generated list of all salhelper/ includes\n' > $@ + $(foreach file, $(wildcard $(SRCDIR)/salhelper/inc/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*.hxx) \ + $(wildcard $(SRCDIR)/salhelper/inc/*/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*/*.hxx) \ + $(wildcard $(SRCDIR)/salhelper/inc/*/*/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*/*/*.hxx) \ + $(wildcard $(SRCDIR)/salhelper/inc/*/*/*/*.h) $(wildcard $(SRCDIR)/salhelper/inc/*/*/*/*.hxx), \ + $(if $(findstring /win32/, $(file)), printf '#ifdef _WIN32\n' >> $@ &&) \ + printf '#include <%s>\n' $(subst $(SRCDIR)/salhelper/inc/,,$(file)) >> $@ && \ + $(if $(findstring /win32/, $(file)), printf '#endif // _WIN32\n' >> $@ &&) \ + ) : # vim: set noet sw=4 ts=4: |