nsprpub/pr/include/md/Makefile.in

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     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/.
     6 #! gmake
     8 MOD_DEPTH	= ../../..
     9 topsrcdir	= @top_srcdir@
    10 srcdir		= @srcdir@
    11 VPATH		= @srcdir@
    13 include $(MOD_DEPTH)/config/autoconf.mk
    15 # The .cfg files need to be exported and installed to support
    16 # cross-compilation.
    17 CONFIGS = $(wildcard $(srcdir)/*.cfg)
    19 include $(topsrcdir)/config/rules.mk
    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
    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
    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

mercurial