Update makefile: Don't use ",1" as temporary directory

This commit is contained in:
David A. Wheeler 2014-08-02 22:39:03 -04:00
parent 1d9000a8c3
commit 1790331438
1 changed files with 10 additions and 8 deletions

View File

@ -94,17 +94,19 @@ clean:
distribute: clean flawfinder.pdf flawfinder.ps distribute: clean flawfinder.pdf flawfinder.ps
chmod -R a+rX * chmod -R a+rX *
mkdir ,1 mkdir ,tempdir
cp -p [a-zA-Z]* ,1 cp -p [a-zA-Z]* ,tempdir
rm -f ,1/*.tar.gz rm -f ,tempdir/*.tar.gz
rm -f ,1/*.rpm rm -f ,tempdir/*.rpm
# We don't need both "flawfinder" and "flawfinder.py": # We don't need both "flawfinder" and "flawfinder.py":
rm -f ,1/flawfinder.py rm -f ,tempdir/flawfinder.py
mv ,1 flawfinder-$(VERSION) mv ,tempdir flawfinder-$(VERSION)
# Nobody else needs "update" either. # Nobody else needs "update" either.
rm -f ,1/update rm -f ,tempdir/update
# Don't need compressed version of document.
rm -f ,tempdir/flawfinder.1.gz
# Don't include (out of date) index.html # Don't include (out of date) index.html
rm -f ,1/index.html rm -f ,tempdir/index.html
tar cvfz flawfinder-$(VERSION).tar.gz flawfinder-$(VERSION) tar cvfz flawfinder-$(VERSION).tar.gz flawfinder-$(VERSION)
chown --reference=. flawfinder-$(VERSION).tar.gz chown --reference=. flawfinder-$(VERSION).tar.gz
rm -fr flawfinder-$(VERSION) rm -fr flawfinder-$(VERSION)