Permalink
Browse files

Packing targets started

git-svn-id: https://gforge.info.ucl.ac.be/svn/mozart@9819 ada56829-ad1f-0410-b00f-83cda6628aec
  • Loading branch information...
1 parent 80917b5 commit 8eb3d1ba600ac44a3636eb641e4ff4fed43bad73 schulte committed Dec 1, 1998
Showing with 36 additions and 49 deletions.
  1. +36 −49 Makefile.in
View
@@ -56,40 +56,17 @@ INSTALL_BIN= $(INSTALL) -m 555
INSTALL_FILE= $(INSTALL) -m 444
INSTALL_DIR= @INSTALL_DIR@
-TAR= tar
-CVS= cvs
-
######################################################################
# other variables
######################################################################
OZVERSION= $(SRCTOP)/OZVERSION
-
-PLATFORMS= solaris-sparc aix3-rs600 freebsd-i486 hpux-700\
- irix5-mips linux-i486 netbsd-i486 netbsd-m68k netbsd-sparc\
- osf1-alpha solaris-i486 sunos-sparc win32-i486
-
-DISTDIR= dist
-
FILES= LICENSE LICENSE.html
ALLFILES= $(FILES:%=$(PREFIX)/%)
-COMMONFILES= LICENSE LICENSE.html \
- bin include share cache
-
-DEMOFILES= demo examples
-
-COMPRESS= gzip -9
-
-WINCACHEDIR= oz/cache/$(HOMECACHE)
-
# sub directories for recursive makes
SUBDIRS= @oz_subdirs@
-# list of directories to create during install
-DIRS=
-INSTALLDIRS= $(PREFIX) $(DIRS:%=$(PREFIX)/%)
-
######################################################################
# common targets
######################################################################
@@ -117,9 +94,9 @@ distclean::
$(MAKE) veryclean SUBDIRS=
-rm -f Makefile config.cache config.log config.status
-install:: $(INSTALLDIRS)
+install:: $(PREFIX)
-$(INSTALLDIRS):
+$(PREFIX):
$(INSTALL_DIR) $@
all:: Makefile
@@ -130,41 +107,51 @@ Makefile: Makefile.in ./config.status
./config.status: ./configure
./config.status --recheck
-######################################################################
-# other targets
-######################################################################
-
install:: $(ALLFILES)
$(ALLFILES): $(PREFIX)/% : % $(PREFIX)
$(INSTALL_FILE) $< $@
-$(DISTDIR):
- $(INSTALL_DIR) $@
+######################################################################
+# other targets
+######################################################################
+
+PLATFORMS= solaris-sparc aix3-rs600 freebsd-i486 hpux-700\
+ irix5-mips linux-i486 netbsd-i486 netbsd-m68k netbsd-sparc\
+ osf1-alpha solaris-i486 sunos-sparc win32-i486
+BASES= $(PLATFORMS:%=%-base)
+CONTRIBS= $(PLATFORMS:%=%-contrib)
+
+COMPRESS= gzip -9
+TAR= tar
+WINCACHEDIR= oz/cache/$(HOMECACHE)
+PACKDIR= pack
-pack-all: common $(PLATFORMS)
-home: mini-common wish-linux src linuxz
+.PHONY: source doc $(PLATFORMS)
-mini-common: $(DISTDIR)
- (cd $(PREFIX)/..; \
- $(TAR) -zvcf - oz/bin oz/include oz/share) > \
- $(DISTDIR)/mini-`$(OZVERSION)`.tgz
+source: $(PACKDIR)
+ (cd $(PACKDIR); \
+ (cd $(SRCTOP)/..; \
+ $(TAR) -cf - mozart) | $(TAR) -xf - ; \
+ find mozart -name CVS -type d -exec rm -rf ';' ; \
+ find mozart -name '.cvsignore' -type f -exec rm -f ';' ; \
+ $(TAR) -cf - mozart | \
+ $(COMPRESS) > mozart-`$(OZVERSION)`-`date +"%m%d%y"`-src.tar.gz; \
+ rm -rf mozart)
-common: $(DISTDIR)
- (cd $(PREFIX)/..; \
- $(TAR) -cf - $(COMMONFILES:%=oz/%)) | \
- $(COMPRESS) > $(DISTDIR)/oz-`$(OZVERSION)`-$@.tar.gz
+doc: $(PACKDIR)
+ (cd $(PACKDIR); \
+ (cd $(PREFIX); \
+ $(TAR) -cf - doc) | $(TAR) -xf -; \
+ rm -rf doc/demo/applets; \
+ $(TAR) -cf - doc | \
+ $(COMPRESS) > mozart-`$(OZVERSION)`-`date +"%m%d%y"`-doc.tar.gz; \
+ rm -rf doc)
-demo: $(DISTDIR)
- (cd $(PREFIX)/..; \
- $(TAR) -cf - $(DEMOFILES:%=oz/%)) | \
- $(COMPRESS) > $(DISTDIR)/oz-`$(OZVERSION)`-$@.tar.gz
-$(PLATFORMS): $(DISTDIR)
- (cd $(PREFIX)/..; \
- $(TAR) -cf - oz/platform/$@) | \
- $(COMPRESS) > $(DISTDIR)/oz-`$(OZVERSION)`-$@.tar.gz
+$(PACKDIR):
+ $(INSTALL_DIR) $@
oz-win::
rm -rf oz oz3 oz-`$(OZVERSION)`

0 comments on commit 8eb3d1b

Please sign in to comment.