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
|
Line | |
---|
1 | # $Id:
|
---|
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>
|
---|
5 | # Manuel Canales Esparcia
|
---|
6 | # Pierre Labastie
|
---|
7 |
|
---|
8 | TOPDIR=$(shell pwd)
|
---|
9 | CONFIG_CONFIG_IN = Config.in
|
---|
10 | CONFIG = menu
|
---|
11 |
|
---|
12 | all: menuconfig
|
---|
13 | # @clear
|
---|
14 | @$$(grep RUN_ME configuration 2>/dev/null | sed -e 's@RUN_ME=\"@@' -e 's@\"@@')
|
---|
15 |
|
---|
16 | $(CONFIG)/conf:
|
---|
17 | $(MAKE) -C $(CONFIG) conf
|
---|
18 |
|
---|
19 | $(CONFIG)/mconf:
|
---|
20 | $(MAKE) -C $(CONFIG) ncurses conf mconf
|
---|
21 |
|
---|
22 | menuconfig: $(CONFIG)/mconf
|
---|
23 | @cp -a configuration configuration.old 2>/dev/null || true
|
---|
24 | @$(CONFIG)/mconf $(CONFIG_CONFIG_IN)
|
---|
25 |
|
---|
26 | config: $(CONFIG)/conf
|
---|
27 | @$(CONFIG)/conf $(CONFIG_CONFIG_IN)
|
---|
28 |
|
---|
29 | # Clean up
|
---|
30 |
|
---|
31 | clean:
|
---|
32 | rm -f configuration configuration.old error
|
---|
33 | - $(MAKE) -C $(CONFIG) clean
|
---|
34 |
|
---|
35 | clean-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.