conffile.yy.o: ALL_CFLAGS += -Wno-sign-compare
secnet: $(OBJECTS)
- $(MAKE) version.o # *.o $(filter-out %.o, $^)
+ $(MAKE) -f main.mk version.o # *.o $(filter-out %.o, $^)
$(CC) $(LDFLAGS) $(ALL_CFLAGS) -o $@ $(OBJECTS) version.o $(LDLIBS)
# We (always) regenerate the version, but only if we regenerate the
# binary. (This is necessary as the version string is can depend on
ifneq (,$(wildcard .git/HEAD))
# If we have (eg) committed, relink and thus regenerate the version
# with the new info from git describe.
-secnet: Makefile .git/HEAD $(shell sed -n 's#^ref: #.git/#p' .git/HEAD)
+secnet: Makefile .git/HEAD $(wildcard $(shell sed -n 's#^ref: #.git/#p' .git/HEAD))
secnet: $(wildcard .git/packed-refs)
endif
recheck:
rm -f $(&TARGETS_check)
rm -rf $(addsuffix /d-*, $(TESTDIRS))
- $(MAKE) check
+ $(MAKE) -f main.mk check
.PHONY: FORCE
version.c: FORCE
install-force:
rm -f $(STALE_PYTHON_FILES)
- $(MAKE) install
+ $(MAKE) -f main.mk install
clean::
$(RM) -f *.o *.yy.[ch] *.tab.[ch] $(TARGETS) core version.c