aboutsummaryrefslogtreecommitdiffstats
path: root/lwlib
diff options
context:
space:
mode:
authorPaul Eggert2013-09-03 23:45:44 -0700
committerPaul Eggert2013-09-03 23:45:44 -0700
commit224e313d3bed309a304683c83afe58752cb97e1c (patch)
tree952d4a791e20e1b917b9ca8c3610bfaaecfd64f2 /lwlib
parent6d6ed1af817d98f7e78a8be10f5fda14a41e18f6 (diff)
downloademacs-224e313d3bed309a304683c83afe58752cb97e1c.tar.gz
emacs-224e313d3bed309a304683c83afe58752cb97e1c.zip
Makefile improvements.
* Makefile.in (lib): Depend on am--refresh, to avoid a race. (src): Remove duplicate dependency on FRC. Invoke just one submake, not two. Avoid the need for 'pwd'. * lwlib/Makefile.in (all): Put this first. Don't use double-colon rules, as they are not portable according to POSIX. Mark as phony. * oldXMenu/Makefile.in (all, tags): Don't use double-colon rules, as they are not portable according to POSIX. Mark as phony. * src/Makefile.in (config.status): Don't use double-colon rules, as they are not portable according to POSIX. Fix shell typo with `; I guess this rule has never been tested? (VCSWITNESS): New macro, to override any environment var.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/ChangeLog6
-rw-r--r--lwlib/Makefile.in5
2 files changed, 9 insertions, 2 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog
index a9e424ac4b3..5a1018f85e5 100644
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -1,3 +1,9 @@
12013-09-04 Paul Eggert <eggert@cs.ucla.edu>
2
3 Makefile improvements.
4 * Makefile.in (all): Put this first. Don't use double-colon
5 rules, as they are not portable according to POSIX. Mark as phony.
6
12013-06-30 Paul Eggert <eggert@cs.ucla.edu> 72013-06-30 Paul Eggert <eggert@cs.ucla.edu>
2 8
3 Fix minor problems found by static checking. 9 Fix minor problems found by static checking.
diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in
index f228221c45d..40f4a405e97 100644
--- a/lwlib/Makefile.in
+++ b/lwlib/Makefile.in
@@ -59,11 +59,12 @@ ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
59 -Demacs -I../src \ 59 -Demacs -I../src \
60 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib 60 -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
61 61
62all: liblw.a
63.PHONY: all
64
62.c.o: 65.c.o:
63 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< 66 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
64 67
65all:: liblw.a
66
67liblw.a: $(OBJS) 68liblw.a: $(OBJS)
68 rm -f $@ 69 rm -f $@
69 $(AR) $(ARFLAGS) $@ $(OBJS) 70 $(AR) $(ARFLAGS) $@ $(OBJS)