summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-02-08 00:50:37 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-02-08 00:50:37 -0800
commit3ad90f9e7b6806832849db9e1d908d906d06a87b (patch)
tree5de1cd14a67dc048125f1e395f2dd8ddc646d9cf
parentab258ae6b13be92d2c8bf1a946aae1a1d902f16a (diff)
downloadtxr-3ad90f9e7b6806832849db9e1d908d906d06a87b.tar.gz
txr-3ad90f9e7b6806832849db9e1d908d906d06a87b.tar.bz2
txr-3ad90f9e7b6806832849db9e1d908d906d06a87b.zip
build: get rid of .tlo2 files.
After the defvar bugfix in the previous commit, the only differences between .tlo and .tlo2 files are the names of a few gensyms here and there. In other words, they are identical code; therefore, there is no point in compiling them. * Makefile (STDLIB_TLOS2): Variable removed. (%.tlo2): Implicit rule removed. (stage1 stage2): Phony targets removed. (all): Directly depends on $(STDLIB_TLOS) without stage1 intermediary. (clean-tlo): Don't remove $(STDLIB_TLOS2).
-rw-r--r--Makefile15
1 files changed, 3 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 01d8dd7b..7a020029 100644
--- a/Makefile
+++ b/Makefile
@@ -65,7 +65,6 @@ EXTRA_OBJS-$(add_win_res) += win/txr.res
STDLIB_SRCS := $(wildcard share/txr/stdlib/*.tl)
STDLIB_TLOS := $(patsubst %.tl,%.tlo,$(STDLIB_SRCS))
-STDLIB_TLOS2 := $(patsubst %.tl,%.tlo2,$(STDLIB_SRCS))
STDLIB_EARLY_PATS := %/error.tlo # these must be compiled first
STDLIB_EARLY_TLOS := $(filter $(STDLIB_EARLY_PATS),$(STDLIB_TLOS))
@@ -193,10 +192,6 @@ win/%.res: $(top_srcdir)win/%.rc $(top_srcdir)win/%.ico
%.tlo: %.tl | $(PROG)
$(call COMPILE_TL)
-%.tlo2: %.tl | $(PROG)
- $(call COMPILE_TL)
- $(call SH,F=$@ T=$${F%.tlo2}.tlo; cmp -s $$F $$T || cp $$F $$T)
-
# The following pattern rule is used for test targets built by configure
%.o: %.c
$(call COMPILE_C)
@@ -219,16 +214,12 @@ tainted:
endif
endif
-.PHONY: all stage1 stage2
+.PHONY: all
-all: $(BUILD_TARGETS) stage1 stage2
+all: $(BUILD_TARGETS) $(STDLIB_TLOS)
$(STDLIB_LATE_TLOS): | $(STDLIB_EARLY_TLOS)
-stage1: $(STDLIB_TLOS)
-
-stage2: $(STDLIB_TLOS2)
-
$(PROG): $(OPT_OBJS) $(EXTRA_OBJS-y)
$(call LINK_PROG,$(OPT_FLAGS))
@@ -360,7 +351,7 @@ clean: conftest.clean clean-tlo
rm -rf opt dbg $(EXTRA_OBJS-y)
clean-tlo:
- rm -f $(STDLIB_TLOS) $(STDLIB_TLOS2)
+ rm -f $(STDLIB_TLOS)
distclean: clean
rm -f config.h config.make config.log