.PHONY: all clean realclean distclean dist install
PACKAGE:=secnet
-VERSION=0.5.0
+VERSION=0.5.1
VPATH:=@srcdir@
srcdir:=@srcdir@
eax-test.o aes.o
ifeq (version.o,$(MAKECMDGOALS))
-OBJECTS:=version.o
+OBJECTS:=
TEST_OBJECTS:=
endif
&OBJECTS += $(OBJECTS) $(TEST_OBJECTS)
-&:include subdirmk/cdeps.sd.mk
STALE_PYTHON_FILES= $(foreach e, py pyc, \
$(foreach p, /usr /usr/local, \
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
-version.c: Makefile
+.PHONY: FORCE
+version.c: FORCE
echo "#include \"secnet.h\"" >$@.new
@set -ex; if test -e .git && type -p git >/dev/null; then \
v=$$(git describe --match 'v*'); v=$${v#v}; \
./$< <$(srcdir)/eax-$*-test.vectors >$@.new
mv -f $@.new $@
+&CDEPS_OBJECTS += msgcode-test.o
+
msgcode-test: msgcode-test.o
$(CC) $(LDFLAGS) $(ALL_CFLAGS) -o $@ $^
install-force:
rm -f $(STALE_PYTHON_FILES)
- $(MAKE) install
+ $(MAKE) -f main.mk install
+
+&CLEAN += .version.d
+&CLEAN += $(TARGETS) $(&TARGETS_check) $(&TARGETS_fullcheck)
clean::
- $(RM) -f *.o *.yy.[ch] *.tab.[ch] $(TARGETS) core version.c
+ $(RM) -f *.o *.yy.[ch] *.tab.[ch] core version.c
$(RM) -f *.pyc *~ eax-*-test.confirm eax-*-test
- $(RM) $(&CLEAN)
$(RM) -rf __pycache__
$(RM) -f msgcode-test.confirm msgcode-test
# Release checklist:
#
-# 0. Use this checklist from Makefile.in
+# 0. Use this checklist from Subdir.sd.mk
#
# 1. Check that the tree has what you want
#