Changeset 133

Show
Ignore:
Timestamp:
09/02/05 09:40:33 (3 years ago)
Author:
jtv
Message:

dist & distclean targets

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile

    r132 r133  
    99clean: 
    1010        +$(MAKE) -C src clean 
     11 
     12distclean: clean 
     13        +$(MAKE) -C src distclean 
    1114 
    1215install: all 
     
    2730        $(RM) /usr/share/man/man8/swapspace.8 
    2831 
     32dist : distclean VERSION 
     33        tar -czf swapspace-`cat VERSION`.tar.gz --exclude=debian --exclude=.svn --exclude=.*.swp --exclude=tmp --exclude=swapspace-*.tar.gz . 
     34        $(RM) -r tmp 
     35        mkdir -p tmp/swapspace-`cat VERSION` 
     36        tar -xzf swapspace-`cat VERSION`.tar.gz -C tmp/swapspace-`cat VERSION` 
     37        $(RM) swapspace-`cat VERSION`.tar.gz 
     38        tar -czf ../swapspace-`cat VERSION`.tar.gz -C tmp swapspace-`cat VERSION` 
     39        $(RM) -r tmp 
     40 
     41 
    2942# Derive version number and last change date from Debian changelog 
    3043VERSION: debian/changelog 
  • src/Makefile

    r102 r133  
    4444 
    4545clean : 
    46         $(RM) swapspace $(SWAPSPACEOBJS) hog hog.o 
     46        $(RM) $(SWAPSPACEOBJS) hog.o 
    4747 
    48 .PHONY : all clean 
     48distclean : clean 
     49        $(RM) swapspace hog 
     50 
     51.PHONY : all clean distclean 
     52