[decnum-dynpmcs] r185 committed - There's nothing in the build/directory we want to save, so 'make clean...

2 views
Skip to first unread message

codesite...@google.com

unread,
Sep 24, 2009, 1:33:11 PM9/24/09
to decnum-...@googlegroups.com
Revision: 185
Author: arbelo
Date: Thu Sep 24 10:32:16 2009
Log: There's nothing in the build/directory we want to save, so 'make
clean' removes it altogether.
Further make targets recreate it if needed.


http://code.google.com/p/decnum-dynpmcs/source/detail?r=185

Modified:
/trunk/cfg/Makefile.in

=======================================
--- /trunk/cfg/Makefile.in Thu Sep 24 10:15:22 2009
+++ /trunk/cfg/Makefile.in Thu Sep 24 10:32:16 2009
@@ -16,7 +16,9 @@
MAKE := @make_c@
PERL := @perl@
RM_F := @rm_f@
+RM_RF := @rm_rf@
CHMOD := @chmod@
+MKPATH := @mkpath@
CP := @cp@
CC := @cc@ -c
LD := @ld@
@@ -45,23 +47,26 @@
$(PMC_DIR)/decnumcontext.pmc \
$(PMC_DIR)/decnum.pmc

-BUILD_CLEANUPS := $(STAGING_DIR)/*
-
# the default target
-all: pmc
+all: pmc $(STAGING_DIR)
+
+$(STAGING_DIR):
+ $(MKPATH) $(STAGING_DIR)

pmc: $(PMC_DEPS) $(STAGING_DIR)/decContext$(O) \
- $(STAGING_DIR)/decNumber$(O)
+ $(STAGING_DIR)/decNumber$(O) $(STAGING_DIR)
$(MAKE) $(PMC_DIR)

$(STAGING_DIR)/decContext$(O): $(DECNUMBER_DIR)/decContext.c \
- $(DECNUMBER_DIR)/decContext.h
- $(CC) $(CFLAGS) $(CC_OUT)$(STAGING_DIR)/decContext$(O)
$(DECNUMBER_DIR)/decContext.c
+ $(DECNUMBER_DIR)/decContext.h $(STAGING_DIR)
+ $(CC) $(CFLAGS) $(CC_OUT)$(STAGING_DIR)/decContext$(O) \
+ $(DECNUMBER_DIR)/decContext.c

$(STAGING_DIR)/decNumber$(O): $(DECNUMBER_DIR)/decNumber.c \
- $(DECNUMBER_DIR)/decNumber.h \
- $(DECNUMBER_DIR)/decContext.h
- $(CC) $(CFLAGS) $(CC_OUT)$(STAGING_DIR)/decNumber$(O)
$(DECNUMBER_DIR)/decNumber.c
+ $(DECNUMBER_DIR)/decNumber.h \
+ $(DECNUMBER_DIR)/decContext.h
+ $(CC) $(CFLAGS) $(CC_OUT)$(STAGING_DIR)/decNumber$(O) \
+ $(DECNUMBER_DIR)/decNumber.c

# This is a listing of all targets, that are meant to be called by users
help:
@@ -96,16 +101,13 @@
$(RM_F) $(INSTALL_DIR)/decnum_group$(LOAD_EXT)
$(RM_F) $(LIB_DIR)/include/decnum.pasm

-testclean:
- $(RM_F) $(TEST_CLEANUPS)
-
clean:
$(MAKE) $(PMC_DIR) clean
- $(RM_F) $(TEST_CLEANUPS) $(BUILD_CLEANUPS)
-
-realclean:
+ $(RM_RF) $(STAGING_DIR)
+
+realclean: clean
$(MAKE) $(PMC_DIR) realclean
- $(RM_F) $(TEST_CLEANUPS) $(BUILD_CLEANUPS) Makefile aux/decTest/Makefile
+ $(RM_F) Makefile aux/decTest/Makefile

# Local variables:
# mode: makefile

Reply all
Reply to author
Forward
0 new messages