summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in22
1 files changed, 19 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 8ff221b8..a7ced32d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,5 +1,4 @@
#! gmake
-
#
# The contents of this file are subject to the Netscape Public License
# Version 1.1 (the "NPL"); you may not use this file except in
@@ -31,8 +30,19 @@ PR_CLIENT_BUILD = 1
PR_CLIENT_BUILD_UNIX = 1
endif
+DIST_GARBAGE = config.cache config.log config.status
+
+all:: config.status export
+
include $(topsrcdir)/config/rules.mk
+config.status:: configure
+ifeq ($(OS_ARCH),WINNT)
+ sh $(srcdir)/configure --no-create --no-recursion
+else
+ ./config.status --recheck && ./config.status
+endif
+
#
# The -ll option of zip converts CR LF to LF.
#
@@ -44,11 +54,17 @@ ifdef PR_CLIENT_BUILD
export::
rm -r -f $(DIST)/../public/nspr
ifdef PR_CLIENT_BUILD_UNIX
- rm -f $(DIST)/lib/libnspr.a
- rm -f $(DIST)/bin/libnspr.$(DLL_SUFFIX)
+ rm -f $(dist_libdir)/libnspr.a
+ rm -f $(dist_bindir)/libnspr.$(DLL_SUFFIX)
endif
endif
+# Delete config/autoconf.mk last because it is included by every makefile.
+distclean::
+ @echo "cd pr/tests; $(MAKE) $@"
+ @$(MAKE) -C pr/tests $@
+ rm -f config/autoconf.mk
+
release::
echo $(BUILD_NUMBER) > $(RELEASE_DIR)/$(BUILD_NUMBER)/version.df
@if test -f imports.df; then \