OSSP CVS Repository

ossp - Difference in ossp-pkg/eperl/Makefile.in versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/eperl/Makefile.in 1.6 -> 1.7

--- Makefile.in  2000/07/03 08:39:02     1.6
+++ Makefile.in  2000/07/03 09:05:26     1.7
@@ -43,24 +43,18 @@
 libsubdir       = @libsubdir@
 libdir          = $(prefix)/lib$(libsubdir)
 mandir          = $(prefix)/man/man1
-
+tmpdir          = @tmpdir@
 
 # ------------------------------------------------
 #   THE RELEASE STUFF (MACROS)
 # ------------------------------------------------
 
 _GETDISTINFO = \
-    _version=`$(SHTOOL) version -l c -d short eperl_version.c`; \
-    _date=`date '+%y%m%d_%H%M'`
+    _version=`$(SHTOOL) version -lc -dshort eperl_version.c`
 
 _BUILDDIST = \
-    echo "Creating tarball..."; \
-    gtar --no-recursion -cvf - `find * -depth -print | sort` | grep -v CVS | grep -v .cvsignore \
-    tardy --user_number=1000  --user_name=rse \
-          --group_number=1000 --group_name=en \
-          --prefix=$${_distname} - |\
-    gzip >$${_tarball}; \
-    echo "Done"; \
+        $(SHTOOL) tarball -o $${_tarball} -d $${_distname} -u rse -g eperl \
+                          -e 'CVS,\.cvsignore,\.configure,\.\#.*,\.[ao]$$' -c 'gzip --best' .
     ls -l $${_tarball}
 
 _NEWVERS = \
@@ -85,7 +79,7 @@
 #   THE DEFAULT TARGET
 # ------------------------------------------------
 
-all: config eperl eperl.1
+all: eperl eperl.1
 
 
 # ------------------------------------------------
@@ -111,18 +105,18 @@
 release: distclean fixperm
         @$(_GETDISTINFO); \
         _distname="eperl-$${_version}"; \
-        _tarball="/tmp/$${_distname}.tar.gz"; \
+        _tarball="$(tmpdir)/$${_distname}.tar.gz"; \
         echo "Release Distribution: ePerl Version $$_version"; \
         $(_BUILDDIST); \
-        mv /tmp/$${_distname}.tar.gz $${_distname}.tar.gz
+        mv $(tmpdir)/$${_distname}.tar.gz $${_distname}.tar.gz
 
 snap: distclean fixperm
         @$(_GETDISTINFO); \
-        _distname="eperl-$${_version}-SNAP-$${_date}"; \
-        _tarball="/tmp/$${_distname}.tar.gz"; \
-        echo "Snap of whole source tree: ePerl Version $$_version as of $${_date}"; \
+        _distname="eperl-$${_version}-SNAP"; \
+        _tarball="$(tmpdir)/$${_distname}.tar.gz"; \
+        echo "Snap of whole source tree: ePerl Version $$_version"; \
         $(_BUILDDIST); \
-        mv /tmp/$${_distname}.tar.gz $${_distname}.tar.gz
+        mv $(tmpdir)/$${_distname}.tar.gz $${_distname}.tar.gz
 
 new-version:
         @V="$(VERSION)"; \
@@ -188,9 +182,7 @@
 
 eperl: $(OBJS)
         $(CC) $(LDFLAGS) -o eperl $(OBJS) $(LDLIBS) $(dmalloc)
-        @if [ "x$(debug)" = xoff ]; then \
-                strip eperl; \
-        fi
+        @[ "x$(debug)" = xon ] || strip eperl
 
 eperl_main.o: eperl_main.c
         $(CC) $(CFLAGS) -c eperl_main.c
@@ -261,7 +253,7 @@
         ./etc/mkproto eperl_proto.h $(PROTO_SRCS)
 
 fixperm:
-        ./etc/fixperm *
+        $(SHTOOL) fixperm *
 
 
 # ------------------------------------------------
@@ -270,12 +262,12 @@
 
 eperl.1: eperl.pod eperl_version.c
         V=`$(SHTOOL) version -l c -d short eperl_version.c`; \
-        sed -e "s|\@V\@|$$V|g" -e "s|\@prefix\@|$(prefix)|" <eperl.pod >/tmp/eperl.pod; \
+        sed -e "s|\@V\@|$$V|g" -e "s|\@prefix\@|$(prefix)|" <eperl.pod >$(tmpdir)/eperl.pod; \
         pod2man --section=1 \
                 --center="Ralf S. Engelschall" \
                         --release="EN" \
-                        /tmp/eperl.pod >eperl.1 && \
-        rm -f /tmp/eperl.pod
+                        $(tmpdir)/eperl.pod >eperl.1 && \
+        rm -f $(tmpdir)/eperl.pod
 
 
 # ------------------------------------------------
@@ -309,6 +301,7 @@
 #   TEST SUITE
 # ------------------------------------------------
 
+check: test
 test:
         @cd t; make test
 
@@ -337,24 +330,15 @@
         -rm -f libeperl.a
         -rm -f core *.core
 
-realclean:
-        -rm -f $(OBJS)
-        -rm -f eperl
-        -rm -f $(SOBJS)
-        -rm -f libeperl.a
-        -rm -f core *.core
+realclean: clean
         -rm -f eperl_perl5_sm.h
         -rm -f eperl.1
         -rm -f eperl_readme.[ch]
         -rm -f eperl_license.[ch]
 
 distclean:
-        -rm -f $(OBJS)
-        -rm -f eperl
-        -rm -f $(SOBJS)
-        -rm -f libeperl.a
-        -rm -f core *.core
         -rm -f eperl_perl5_sm.h
+        -rm -f eperl.1 eperl-*.tar.gz
         -rm -f config_ac.h config_sc.h
         -rm -f config.status config.cache config.log
         -rm -f Makefile

CVSTrac 2.0.1