Skip to content

Commit

Permalink
make: Don't use wildcard and rebuild when ragel files change.
Browse files Browse the repository at this point in the history
  • Loading branch information
niklata committed Feb 1, 2024
1 parent c1a2f78 commit 5e4defc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NDHC_SRCS = $(sort $(wildcard *.c) $(wildcard nk/*.c) ifchd-parse.c cfg.c)
NDHC_SRCS = $(sort arp.c dhcp.c ifchange.c ifchd-parse.c leasefile.c netlink.c options.c scriptd.c state.c cfg.c duiaid.c ifchd.c ifset.c ndhc.c nl.c rfkill.c sockd.c sys.c nk/hwrng.c nk/io.c nk/privs.c nk/pspawn.c nk/random.c ifchd-parse.c cfg.c)
NDHC_OBJS = $(NDHC_SRCS:.c=.o)
NDHC_DEP = $(NDHC_SRCS:.c=.d)
INCL = -I.
Expand All @@ -19,10 +19,10 @@ clean:
cleanragel:
rm -f ifchd-parse.c cfg.c

ifchd-parse.c:
ifchd-parse.c: ifchd-parse.rl
ragel -G2 -o ifchd-parse.c ifchd-parse.rl

cfg.c:
cfg.c: cfg.rl
ragel -T0 -o cfg.c cfg.rl

ragel: ifchd-parse.c cfg.c
Expand Down

0 comments on commit 5e4defc

Please sign in to comment.