aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 45d67c683c682818e5d4fc97db50a4c303f6cf4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
include Makefile.dirs

all:
	@for i in $(MIXED_DIRS) ; \
		do ( if [ -d $$i ] ; then cd $$i; $(MAKE) ; fi ) ; done
	cd doc/src; $(MAKE)

clean cleanall:
	@for i in $(MIXED_DIRS) ; \
		do ( if [ -d $$i ] ; then cd $$i; $(MAKE) $@ ; fi ) ; done
	rm -f *.gz

diff depend emptydeps:
	@for i in $(MIXED_DIRS) ; \
		do ( if [ -d $$i ] ; then cd $$i; $(MAKE) $@ ; fi ) ; done

ALLSRC_TAR = release/miXed-`date +%F`-src.tar
ALLSRC_ROOTFILES = LICENSE.txt Makefile.common Makefile Makefile.dirs \
	dumpsetups

snap release:
	@for i in $(RELEASE_DIRS) ; \
		do ( if [ -d $$i ] ; then cd $$i; $(MAKE) $@ ; fi ) ; done

rootsnap:
	tar -cf $(ALLSRC_TAR) $(ALLSRC_ROOTFILES)
	@for i in $(RELEASE_DIRS) ; \
		do ( if [ -d $$i ] ; then tar -X $$i/$$i-all.exclude -rf \
			$(ALLSRC_TAR) $$i/* ; fi ) ; done
	tar -X shared/shared-all.exclude -rf $(ALLSRC_TAR) shared/*
	@for i in $(RELEASE_DIRS) ; \
		do ( if [ -d $$i ] ; then tar -X $$i/$$i-test.exclude -rf \
			$(ALLSRC_TAR) test/$$i/* ; fi ) ; done
	@for i in $(RELEASE_DIRS) ; \
		do ( if [ -d $$i ] ; then tar -T $$i/$$i-help.include -rf \
			$(ALLSRC_TAR) ; fi ) ; done
	@for i in $(RELEASE_DIRS) ; \
		do ( if [ -d $$i ] ; then tar -X $$i/$$i-vicious.exclude -rf \
			$(ALLSRC_TAR) ViCious/$$i/* ; fi ) ; done
	tar -rf $(ALLSRC_TAR) bin/notes.txt
	gzip -f $(ALLSRC_TAR)

fullsnap: snap rootsnap

backup:
	tar -X miXed-bak-exclude.files -zcf miXed-bak.tar.gz *