Fork me on GitHub

Changeset 201 in svn for trunk/genMakefile.tcl


Ignore:
Timestamp:
Jan 29, 2009, 1:25:19 PM (16 years ago)
Author:
Xavier Rouby
Message:

'make tar' now possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genMakefile.tcl

    r188 r201  
    225225
    226226SHARED = lib/libUtilities.$(DllSuf) lib/libHector.$(DllSuf)
     227VERSION=$(shell cat VERSION)
     228FOLDER=Delphes_V_$(VERSION)
     229TARBALL=$(FOLDER).tar.gz
     230TESTFILE=tt_jj_small.hep
    227231
    228232all:
     
    328332###
    329333
    330 }
     334tar $(TARBALL):
     335        @echo Building tarball of sources
     336        @mkdir $(FOLDER)
     337        @rsync -qavztup --exclude=CVS* CREDITS README VERSION FAQ Delphes.cpp Resolutions.cpp Makefile rootlogon.C genMakefile.tcl interface lib routines src data Examples Utilities $(FOLDER)
     338        @rm -f $(FOLDER)/$(SHARED)
     339        @rm -f $(FOLDER)/Utilities/FROG/Lib/*.o
     340        @rm -f $(FOLDER)/Utilities/FROG/Lib/libfrog.*
     341        @tar czf $(TARBALL) $(FOLDER)
     342        @rm -rf $(FOLDER)
     343        @mkdir $(FOLDER)
     344        @cp tt_jj_small.hep TEST_small_tt.list $(FOLDER)
     345        @tar czf $(TESTFILE).tar.gz $(FOLDER)
     346        @rm -rf $(FOLDER)
     347        @echo Done : `ls $(TARBALL) $(TESTFILE).tar.gz`
     348
     349
     350}
Note: See TracChangeset for help on using the changeset viewer.