summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile47
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
+