Debian Codegraph @

nsprpub/pr/include/md/Makefile.in

raw
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
6 #! gmake
7
8 MOD_DEPTH = ../../..
9 topsrcdir = @top_srcdir@
10 srcdir = @srcdir@
11 VPATH = @srcdir@
12
13 include $(MOD_DEPTH)/config/autoconf.mk
14
15 # The .cfg files need to be exported and installed to support
16 # cross-compilation.
17 CONFIGS = $(wildcard $(srcdir)/*.cfg)
18
19 include $(topsrcdir)/config/rules.mk
20
21 export:: $(MDCPUCFG_H)
22 $(INSTALL) -m 444 $(CONFIGS) $(dist_includedir)/md
23 $(INSTALL) -m 444 $(srcdir)/$(MDCPUCFG_H) $(dist_includedir)
24 mv -f $(dist_includedir)/$(MDCPUCFG_H) $(dist_includedir)/prcpucfg.h
25
26 install::
27 $(NSINSTALL) -D $(DESTDIR)$(includedir)/md
28 $(NSINSTALL) -t -m 644 $(CONFIGS) $(DESTDIR)$(includedir)/md
29 $(NSINSTALL) -t -m 644 $(srcdir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)
30 mv -f $(DESTDIR)$(includedir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)/prcpucfg.h
31
32 release:: export
33 @echo "Copying machine-dependent prcpucfg.h"
34 @if test -z "$(BUILD_NUMBER)"; then \
35 echo "BUILD_NUMBER must be defined"; \
36 false; \
37 fi
38 @if test ! -d $(RELEASE_INCLUDE_DIR); then \
39 rm -rf $(RELEASE_INCLUDE_DIR); \
40 $(NSINSTALL) -D $(RELEASE_INCLUDE_DIR);\
41 fi
42 cp $(srcdir)/$(MDCPUCFG_H) $(RELEASE_INCLUDE_DIR)/prcpucfg.h