Makefile.am 1.98 KB
Newer Older
1 2 3 4
# Adding this will suppress the requirement for INSTALL, et c., files.
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4 

Alastair McKinstry's avatar
Alastair McKinstry committed
5
#---------------------------------------------------------------------
6 7
# Subdirectories with Makefiles

Alastair McKinstry's avatar
Alastair McKinstry committed
8 9 10

# SUBDIRS lists all directories that make should recurse into 
#   before processing the current directory
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
SUBDIRS=src

EXTRA_DIST=COPYRIGHT INSTALL

BINDISTFILES=COPYRIGHT INSTALL

DATADISTFILES=data

DOCDISTFILES=doc

# Indicate that these targets are not the names of files
.PHONY: nobin-dists all-dists snapshot-dist bin-dist snapshot-bin-dist \
	data-dist doc-dist

dist-all: dist data-dist doc-dist

bin-dist: all-am
	$(MAKE) $(AM_MAKE_FLAGS) prefix=$(prefix)/$(distdir) install-exec; \
	for file in $(BINDISTFILES) ; do \
	  cp -pR $$file $(distdir)/ ; \
	done; \
	rm -rf `find $(distdir) -name CVS`; \
Alastair McKinstry's avatar
Alastair McKinstry committed
33 34
	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) \
	gzip -c >$(distdir)-bin-$(host_triplet).tar.gz; \
35 36 37 38 39 40 41 42
	$(am__remove_distdir)

data-dist:
	mkdir -p $(distdir); \
	for file in $(DATADISTFILES) ; do \
	  cp -pR $$file $(distdir)/ ; \
	done; \
	rm -rf `find $(distdir) -name CVS`; \
Alastair McKinstry's avatar
Alastair McKinstry committed
43 44
	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) \
	gzip -c >$(distdir)-data.tar.gz; \
45 46 47 48 49 50 51 52
	$(am__remove_distdir)

doc-dist:
	mkdir -p $(distdir); \
	for file in $(DOCDISTFILES) ; do \
	  cp -pR $$file $(distdir)/ ; \
	done; \
	rm -rf `find $(distdir) -name CVS`
Alastair McKinstry's avatar
Alastair McKinstry committed
53 54
	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) \
	gzip -c >$(distdir)-doc.tar.gz; \
55 56 57 58
	$(am__remove_distdir)

snapshot: distdir
	date_str=`date '+%Y%m%d-%H%M'`; \
Alastair McKinstry's avatar
Alastair McKinstry committed
59 60
	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) \
	gzip -c >$(distdir)-snapshot-$${date_str}.tar.gz; \
61 62 63 64 65 66 67 68 69
	$(am__remove_distdir)

bin-snapshot: all-am
	$(MAKE) $(AM_MAKE_FLAGS) prefix=$(prefix)/$(distdir) install-exec; \
	for file in $(BINDISTFILES) ; do \
	  cp -pR $$file $(distdir)/ ; \
	done; \
	rm -rf `find $(distdir) -name CVS`; \
	date_str=`date '+%Y%m%d-%H%M'`; \
Alastair McKinstry's avatar
Alastair McKinstry committed
70 71
	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) \
gzip -c >$(distdir)-bin-snapshot-$${date_str}.tar.gz; \
72
	$(am__remove_distdir)