source: Makefile@ aeb8539

ablfs-more legacy trunk
Last change on this file since aeb8539 was a22bfe1, checked in by Pierre Labastie <pierre@…>, 6 years ago

Author: Jeremy Huntwork <jhuntwork@…>
Date: Tue Apr 16 13:31:09 2019 -0700

Improve testing of configuration file timestamp


  • Provide a default value for each so that the comparisons of the time of each file doesn't fail.
  • Two commands in the Makefile could acceptably fail, but would produce some ugly warnings.


Signed-off-by: Pierre Labastie <pierre.labastie@…>

  • Property mode set to 100644
File size: 948 bytes
RevLine 
[2e2ac74]1# $Id:
[a705708]2# From the Build Scripts Written By: Jim Gifford <lfs@jg555.com>
3# Modified By: Joe Ciccone <jciccone@linuxfromscratch.org
4# Additional changes: George Boudreau <georgeb@linuxfromscratch.org>
[2e2ac74]5# Manuel Canales Esparcia
6# Pierre Labastie
[a705708]7
8TOPDIR=$(shell pwd)
9CONFIG_CONFIG_IN = Config.in
10CONFIG = menu
11
12all: menuconfig
[4da2512]13# @clear
[a22bfe1]14 @$$(grep RUN_ME configuration 2>/dev/null | sed -e 's@RUN_ME=\"@@' -e 's@\"@@')
[a705708]15
16$(CONFIG)/conf:
17 $(MAKE) -C $(CONFIG) conf
18
19$(CONFIG)/mconf:
20 $(MAKE) -C $(CONFIG) ncurses conf mconf
21
22menuconfig: $(CONFIG)/mconf
[a22bfe1]23 @cp -a configuration configuration.old 2>/dev/null || true
[a705708]24 @$(CONFIG)/mconf $(CONFIG_CONFIG_IN)
25
26config: $(CONFIG)/conf
27 @$(CONFIG)/conf $(CONFIG_CONFIG_IN)
28
29# Clean up
30
31clean:
32 rm -f configuration configuration.old error
33 - $(MAKE) -C $(CONFIG) clean
34
35clean-target:
36 rm -f error
37 - $(MAKE) -C $(CONFIG) clean
38
39.PHONY: all menuconfig config clean clean-target
Note: See TracBrowser for help on using the repository browser.