| 34 |
# Ensure vanilla locale when building |
# Ensure vanilla locale when building |
| 35 |
override LANG := C |
override LANG := C |
| 36 |
|
|
| 37 |
|
# APA: XEmacs native NT currently (2000-06-23) has shortcomings we |
| 38 |
|
# need to temporarily work around. |
| 39 |
|
XEMACS_NATIVE_NT = \ |
| 40 |
|
$(shell $(XEMACS) $(VANILLA) -batch \ |
| 41 |
|
-eval "(princ (eq system-type 'windows-nt))") |
| 42 |
|
|
| 43 |
# Only in rare cases will you need to override this |
# Only in rare cases will you need to override this |
| 44 |
ifeq ($(AUTOLOAD_PATH),) |
ifeq ($(AUTOLOAD_PATH),) |
| 45 |
AUTOLOAD_PATH = . |
AUTOLOAD_PATH = . |
| 66 |
%.info: %.texi |
%.info: %.texi |
| 67 |
$(MAKEINFO) $(MAKEINFO_FLAGS) -o $@ $< |
$(MAKEINFO) $(MAKEINFO_FLAGS) -o $@ $< |
| 68 |
|
|
| 69 |
%.elc: %.el |
# APA: XEmacs native NT currently (2000-06-23) has shortcomings we |
| 70 |
$(XEMACS) -no-autoloads -batch $(PRELOADS) -l $(XEMACS_PACKAGES_BASE)/package-compile.el -- $(REQUIRES) -- $< |
# need to temporarily work around. |
| 71 |
|
ifeq ($(XEMACS_NATIVE_NT),t) |
| 72 |
|
# APA: Convert UNIX-path (containing output of `pwd') to windows-path, |
| 73 |
|
# so that XEmacs native NT can handle it. |
| 74 |
|
PACKAGE_COMPILE = \ |
| 75 |
|
"$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/package-compile.el)" |
| 76 |
|
else |
| 77 |
|
PACKAGE_COMPILE = $(XEMACS_PACKAGES_BASE)/package-compile.el |
| 78 |
|
endif |
| 79 |
|
|
| 80 |
|
%.elc: %.el |
| 81 |
|
$(XEMACS) -no-autoloads -batch $(PRELOADS) -l $(PACKAGE_COMPILE) -- $(REQUIRES) -- $< |
| 82 |
|
|
| 83 |
all:: $(AUTOLOAD_PATH)/_pkg.el |
all:: $(AUTOLOAD_PATH)/_pkg.el |
| 84 |
|
|
| 97 |
$(AUTOLOAD_PATH)/custom-load.el package-info \ |
$(AUTOLOAD_PATH)/custom-load.el package-info \ |
| 98 |
$(AUTOLOAD_PATH)/_pkg.el |
$(AUTOLOAD_PATH)/_pkg.el |
| 99 |
|
|
| 100 |
|
# APA: XEmacs native NT currently (2000-06-23) has shortcomings we |
| 101 |
|
# need to temporarily work around. |
| 102 |
|
ifeq ($(XEMACS_NATIVE_NT),t) |
| 103 |
|
# APA: XEmacs native NT currently needs this quoting of |
| 104 |
|
# command-line-rguments. |
| 105 |
|
AUTOLOAD_PACKAGE_NAME = (setq autoload-package-name \\\"$(PACKAGE)\\\") |
| 106 |
|
else |
| 107 |
|
AUTOLOAD_PACKAGE_NAME = (setq autoload-package-name \"$(PACKAGE)\") |
| 108 |
|
endif |
| 109 |
|
|
| 110 |
$(AUTOLOAD_PATH)/auto-autoloads.el : $(ELCS:.elc=.el) $(AUTOLOAD_PATH)/_pkg.el |
$(AUTOLOAD_PATH)/auto-autoloads.el : $(ELCS:.elc=.el) $(AUTOLOAD_PATH)/_pkg.el |
| 111 |
$(XEMACS) $(VANILLA) -batch \ |
$(XEMACS) $(VANILLA) -batch \ |
| 112 |
-eval "(setq autoload-package-name \"$(PACKAGE)\")" \ |
-eval "$(AUTOLOAD_PACKAGE_NAME)" \ |
| 113 |
-l autoload -f batch-update-directory $(AUTOLOAD_PATH) |
-l autoload -f batch-update-directory $(AUTOLOAD_PATH) |
| 114 |
@rm -f $(AUTOLOAD_PATH)/auto-autoloads.el~ |
@rm -f $(AUTOLOAD_PATH)/auto-autoloads.el~ |
| 115 |
|
|
| 119 |
|
|
| 120 |
pkg_tar = $(STAGING)/$(PACKAGE)-$(VERSION)-pkg.tar |
pkg_tar = $(STAGING)/$(PACKAGE)-$(VERSION)-pkg.tar |
| 121 |
|
|
| 122 |
|
# APA: XEmacs native NT currently (2000-06-23) has shortcomings we |
| 123 |
|
# need to temporarily work around. |
| 124 |
|
ifeq ($(XEMACS_NATIVE_NT),t) |
| 125 |
|
# APA: Convert UNIX-path (containing output of `pwd') to windows-path, |
| 126 |
|
# so that XEmacs native NT can handle it. |
| 127 |
|
PKG_TAR_GZ = "$(shell cygpath --windows $(pkg_tar)).gz" |
| 128 |
|
PACKAGE_INFO = "$(shell cygpath --windows $(STAGING)/package-index)" |
| 129 |
|
else |
| 130 |
|
PKG_TAR_GZ = $(pkg_tar).gz |
| 131 |
|
PACKAGE_INFO = $(STAGING)/package-index |
| 132 |
|
endif |
| 133 |
|
|
| 134 |
# Make the $(pkg_tar).gz first, then the $(pkg_tar).bz2 |
# Make the $(pkg_tar).gz first, then the $(pkg_tar).bz2 |
| 135 |
package-info : package-info.in Makefile $(AUTOLOAD_PATH)/_pkg.el \ |
package-info : package-info.in Makefile $(AUTOLOAD_PATH)/_pkg.el \ |
| 136 |
$(pkg_tar).gz $(pkg_tar).bz2 |
$(pkg_tar).gz $(pkg_tar).bz2 |
|
|
|
| 137 |
$(XEMACS) $(VANILLA) -batch \ |
$(XEMACS) $(VANILLA) -batch \ |
| 138 |
-l package-info.el -f batch-update-package-info \ |
-l package-info.el -f batch-update-package-info \ |
| 139 |
'$(VERSION)' $(pkg_tar).gz \ |
'$(VERSION)' $(PKG_TAR_GZ) \ |
| 140 |
'$(REQUIRES)' \ |
'$(REQUIRES)' \ |
| 141 |
'$(AUTHOR_VERSION)' '$(MAINTAINER)' '$(CATEGORY)' |
'$(AUTHOR_VERSION)' '$(MAINTAINER)' '$(CATEGORY)' |
|
|
|
| 142 |
$(XEMACS) $(VANILLA) -batch \ |
$(XEMACS) $(VANILLA) -batch \ |
| 143 |
-l ../../hack-package-index.el -f batch-hack-package-index \ |
-l ../../hack-package-index.el -f batch-hack-package-index \ |
| 144 |
$(PACKAGE) package-info $(STAGING)/package-index |
$(PACKAGE) package-info $(PACKAGE_INFO) |
| 145 |
|
|
| 146 |
ifeq ($(BUILD_TARS),t) |
ifeq ($(BUILD_TARS),t) |
| 147 |
$(pkg_tar): $(STAGING)/$(MANIFEST) |
$(pkg_tar): $(STAGING)/$(MANIFEST) |