#!make -f
#######################################################################
# Name:		backup
# Autor:	Hartmut Keller
#
# Kleines Makefile fuer mich, um Backups von Versionen zu erstellen.
# Einfach mit 
#     make -f backup     oder     backup
# aufrufen. Es wird dann im Unterverzeichnis $(HOME)/OLDVERSIONS ein File
#     paMMDDYY.tar.gz
# angelegt, mit MM=Monat, DD=Tag, YY=Jahr. Bei mehrmaligem Aufruf an
# einem Tag bleibt nur die jeweils letzte Version uebrig, alle
# vorhergehenden werden ueberschrieben.
#######################################################################


FILES = AssocTab.c AssocTab.h BigSet.c BigSet.h Errors.c Errors.h \
        FileIO.c FileIO.h GenIdents.c GenIdents.h \
        GeneralIO.c GeneralIO.h GetDefMods.c GetDefMods.h Label.c Label.h \
        Options.c Options.h Parameter.c Parameter.h Pointer.c Pointer.h \
        Positions.c Positions.h Source.c Source.h Statist.c Statist.h \
        StdProcs.c StdProcs.h Types.c Types.h UniqueIds.c UniqueIds.h \
        Values.c Values.h With.c With.h language.c language.h parallaxis.h \
        parallaxis.cg parallaxis.ell parallaxis.rex symbols.cg \
        parallaxis.puma code_MPL.puma code_C.puma code_PVM.puma \
        p3c.c p3.c p3config.h p3.man Parser.sed backup local export \
        attribute.txt aenderungen.txt KnownBugs optionen.txt \
        Makefile compile FILES README.p3_PVM start.c shared_macros.h \
        SYSTEM_.c SYSTEM_.h SYSTEM_C.c SYSTEM_C.h \
        SYSTEM_MPL.m SYSTEM_MPL.h SYSTEM_PVM.c SYSTEM_PVM.h \
        Graphics_PVM.c ImageIO_PVM.c Storage_PVM.c \
        Graphics.c Graphics.h ImageIO.c ImageIO.h Storage.c Storage.h \
        endrules.awk numbers.awk rules.awk browsegeneral.w browser.w \
        common.w parallaxis.w symbols.w symbrowse.w tree \
        browsetool.tk filebrowser.tk procs.tk show_code.tk static.tk \
        symbols.tk tree.tk watch.tk querysym.c

EXTRA = Scanner.c Scanner.h Parser.c Parser.h Code.c Code.h \
        Eval.c Eval.h Tree.c Tree.h Tree.TS Symbols.c Symbols.h \
        yyCode.w yySymbols.w yyTree.w

p3:
	tar cvhf - $(FILES) | gzip >$(HOME)/OLDVERSIONS/pa`date +%m%d%y`.tar.gz

extra:
	tar cvhf - $(EXTRA) | gzip >$(HOME)/OLDVERSIONS/xa`date +%m%d%y`.tar.gz

#Ende von backup

	