aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-08-10 17:15:22 -0400
committerBill Nottingham <notting@redhat.com>2009-08-10 17:15:22 -0400
commit06cfcb7b84179ffe1ed1945ec74bd92294c7a915 (patch)
tree5b39688af28109cfe4fb65e4800b0bf3a80de1fc /Makefile
parentf8667b1ebae0bd383358b2144033616e74a0b21d (diff)
downloadinitscripts-06cfcb7b84179ffe1ed1945ec74bd92294c7a915.tar
initscripts-06cfcb7b84179ffe1ed1945ec74bd92294c7a915.tar.gz
initscripts-06cfcb7b84179ffe1ed1945ec74bd92294c7a915.tar.bz2
initscripts-06cfcb7b84179ffe1ed1945ec74bd92294c7a915.tar.xz
initscripts-06cfcb7b84179ffe1ed1945ec74bd92294c7a915.zip
Fix things so we don't build binaries on 'make archive'.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c79f44e6..171ffff2 100644
--- a/Makefile
+++ b/Makefile
@@ -122,13 +122,16 @@ install:
-check:
+syntax-check:
for afile in `find . -type f -perm +111|grep -v \.csh | grep -v .git | grep -v po/ ` ; do \
if ! file $$afile | grep -s ELF >/dev/null; then \
bash -n $$afile || { echo $$afile ; exit 1 ; } ; \
fi ;\
done
+
+check: syntax-check
make check -C src
+ make clean -C src
changelog:
@rm -f ChangeLog
@@ -143,7 +146,7 @@ tag:
@git tag -a -m "Tag as $(TAG)" $(TAG)
@echo "Tagged as $(TAG)"
-archive: clean check tag changelog
+archive: clean sytnax-check tag changelog
@git archive --format=tar --prefix=initscripts-$(VERSION)/ HEAD > initscripts-$(VERSION).tar
@mkdir -p initscripts-$(VERSION)/
@cp ChangeLog initscripts-$(VERSION)/