Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
convert config check to rule
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
  • Loading branch information
swegener authored and perexg committed Nov 9, 2015
1 parent 0a73d7f commit 24332cf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Expand Up @@ -541,20 +541,19 @@ SRCS += build.c timestamp.c
all: $(ALL-yes) ${PROG}

# Special
.PHONY: clean distclean check_config reconfigure
.PHONY: clean distclean reconfigure

# Check configure output is valid
check_config:
@test $(ROOTDIR)/.config.mk -nt $(ROOTDIR)/configure\
|| echo "./configure output is old, please re-run"
@test $(ROOTDIR)/.config.mk -nt $(ROOTDIR)/configure
.config.mk: configure
@echo "./configure output is old, please re-run"
@false

# Recreate configuration
reconfigure:
$(ROOTDIR)/configure $(CONFIGURE_ARGS)

# Binary
${PROG}: check_config make_webui $(OBJS)
${PROG}: .config.mk make_webui $(OBJS)
$(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)

# Object
Expand Down

0 comments on commit 24332cf

Please sign in to comment.