diff options
| author | Jason D. McCormick <jason@mfamily.org> | 2023-12-20 16:47:37 -0500 |
|---|---|---|
| committer | Jason D. McCormick <jason@mfamily.org> | 2023-12-20 16:47:37 -0500 |
| commit | 62bca1b61296ac551574818c5021188913678168 (patch) | |
| tree | 3224e3bdd527bb2f9253c097512ffd319f4caeed /Makefile | |
| parent | 93f370195a4178aefce312027ad042559dd51a64 (diff) | |
updated mf-backup, add Makefiles
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
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 + |
