From 62bca1b61296ac551574818c5021188913678168 Mon Sep 17 00:00:00 2001 From: "Jason D. McCormick" Date: Wed, 20 Dec 2023 16:47:37 -0500 Subject: updated mf-backup, add Makefiles --- Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d5b35d5 --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ +# +# Build variables +# +RELVER = 1.0 +DEBVER = 1 + +BUILDABLES = \ + bin + +instconf ?= yes +ifeq ($(instconf),yes) +BUILDABLES += etc +endif + +ifdef ${DESTDIR} +DESTDIR=${DESTDIR} +endif + + +default: + @echo This does nothing + +install: $(ROOT_INSTALLABLES) + @echo DESTDIR=$(DESTDIR) + $(foreach dir, $(BUILDABLES), $(MAKE) -C $(dir) install;) + +deb: debclean debprep + debuild + +debchange: + debchange -r -v $(RELVER)-$(DEBVER) + + +debprep: debclean + (cd .. && \ + rm -f mfamily-scripts-$(RELVER) && \ + rm -f mfamily-scripts-$(RELVER).tar.gz && \ + rm -f mfamily-scripts_$(RELVER).orig.tar.gz && \ + ln -s Allmon3 mfamily-scripts-$(RELVER) && \ + tar --exclude=".git" -h -zvcf mfamily-scripts-$(RELVER).tar.gz mfamily-scripts-$(RELVER) && \ + ln -s mfamily-scripts-$(RELVER).tar.gz mfamily-scripts_$(RELVER).orig.tar.gz ) + +debclean: + rm -f ../mfamily-scripts_$(RELVER)* + rm -rf debian/mfamily-scripts + rm -f debian/files + -- cgit v1.2.3