GENGETOPT := @gengetopt@
HELP2MAN := @help2man@
+MKDIR_P := mkdir -p
build_date := $(shell date)
uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
man: $(man_pages)
tarball: $(tarball)
+$(object_dir) $(man_dir) $(ggo_dir) $(cmdline_dir):
+ $(Q) $(MKDIR_P) $@
+
-include $(m4_ggo_dir)/makefile
# When in doubt, use brute force (Ken Thompson)
@[ -z "$(Q)" ] || echo 'MAN $<'
$(Q) $(HELP2MAN) -h --detailed-help -N ./$< > $@
-$(object_dir):
- mkdir -p $@
-$(man_dir):
- mkdir -p $@
-$(ggo_dir):
- mkdir -p $@
-
$(object_dir)/crypt.o: crypt.c | $(object_dir)
@[ -z "$(Q)" ] || echo 'CC $<'
$(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @openssl_cppflags@ $<
rm -rf web_sync
install: all man
- mkdir -p $(BINDIR) $(MANDIR)
+ $(MKDIR_P) $(BINDIR) $(MANDIR)
$(install_sh) -s -m 755 @executables@ $(BINDIR)
$(install_sh) -m 644 $(man_pages) $(MANDIR)
- mkdir -p $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain
+ $(MKDIR_P) $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain
$(tarball):
rm -rf $(tarball_pfx).tar.bz2 $(tarball_pfx)
git archive --format=tar --prefix=$(tarball_pfx)/ HEAD \
| tar --delete $(tarball_delete) > $(tarball_pfx).tar
- mkdir -p $(tarball_pfx)
+ $(MKDIR_P) $(tarball_pfx)
./GIT-VERSION-GEN > $(tarball_pfx)/VERSION
cp -r $(autocrap) $(tarball_pfx)
tar rf $(tarball_pfx).tar $(tarball_pfx)/*
module_ggo_opts := --set-version="($(PACKAGE_STRING), $(codename))"
-$(cmdline_dir):
- mkdir -p $(cmdline_dir)
$(cmdline_dir)/%_recv.cmdline.h $(cmdline_dir)/%_recv.cmdline.c: $(ggo_dir)/%_recv.ggo | $(cmdline_dir)
@[ -z "$(Q)" ] || echo 'GGO $<'