Makefile.in 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. #! gmake
  6. MOD_DEPTH = ../../..
  7. topsrcdir = @top_srcdir@
  8. srcdir = @srcdir@
  9. VPATH = @srcdir@
  10. include $(MOD_DEPTH)/config/autoconf.mk
  11. # The .cfg files need to be exported and installed to support
  12. # cross-compilation.
  13. CONFIGS = $(wildcard $(srcdir)/*.cfg)
  14. include $(topsrcdir)/config/rules.mk
  15. export:: $(MDCPUCFG_H)
  16. $(INSTALL) -m 444 $(CONFIGS) $(dist_includedir)/md
  17. $(INSTALL) -m 444 $(srcdir)/$(MDCPUCFG_H) $(dist_includedir)
  18. mv -f $(dist_includedir)/$(MDCPUCFG_H) $(dist_includedir)/prcpucfg.h
  19. install::
  20. $(NSINSTALL) -D $(DESTDIR)$(includedir)/md
  21. $(NSINSTALL) -t -m 644 $(CONFIGS) $(DESTDIR)$(includedir)/md
  22. $(NSINSTALL) -t -m 644 $(srcdir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)
  23. mv -f $(DESTDIR)$(includedir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)/prcpucfg.h
  24. release:: export
  25. @echo "Copying machine-dependent prcpucfg.h"
  26. @if test -z "$(BUILD_NUMBER)"; then \
  27. echo "BUILD_NUMBER must be defined"; \
  28. false; \
  29. fi
  30. @if test ! -d $(RELEASE_INCLUDE_DIR); then \
  31. rm -rf $(RELEASE_INCLUDE_DIR); \
  32. $(NSINSTALL) -D $(RELEASE_INCLUDE_DIR);\
  33. fi
  34. cp $(srcdir)/$(MDCPUCFG_H) $(RELEASE_INCLUDE_DIR)/prcpucfg.h