Makefile: make targets distarch and archive more robust

the Makefile assumes the current directory to be named isdn4k-utils
which obviously doesn't necessarily hold true

exclude CVS files from the tarball
This commit is contained in:
Rolf Leggewie 2012-03-29 15:09:18 +02:00
parent 000ebb064f
commit b5f6de4dfb
1 changed files with 9 additions and 11 deletions

View File

@ -238,18 +238,16 @@ config: menuconfig
mrproper: distclean
archive: distclean
@(cd .. ;\
ln -nfs isdn4k-utils isdn4k-utils-$(I4LVERSION) ;\
mkdir -p distisdn ;\
tar cvhzf distisdn/isdn4k-utils-$(I4LVERSION).tar.gz isdn4k-utils-$(I4LVERSION) ;\
rm isdn4k-utils-$(I4LVERSION) )
@(ln -nvfs $(ROOTDIR) ../isdn4k-utils-$(I4LVERSION) ;\
mkdir -p ../distisdn ;\
tar cvhzf ../distisdn/isdn4k-utils-$(I4LVERSION).tar.gz --exclude-vcs ../isdn4k-utils-$(I4LVERSION) ;\
rm ../isdn4k-utils-$(I4LVERSION) )
distarch: distclean
(cd .. ;\
ln -nfs isdn4k-utils isdn4k-utils-$(I4LVERSION) ;\
mkdir -p distisdn ;\
tar -cvhz -X isdn4k-utils/distexclude -f distisdn/isdn4k-utils-$(I4LVERSION).tar.gz \
isdn4k-utils-$(I4LVERSION) ;\
rm isdn4k-utils-$(I4LVERSION) )
(ln -nvfs $(ROOTDIR) ../isdn4k-utils-$(I4LVERSION) ;\
mkdir -p ../distisdn ;\
tar -cvhz -X distexclude -f ../distisdn/isdn4k-utils-$(I4LVERSION).tar.gz \
--exclude-vcs ../isdn4k-utils-$(I4LVERSION) ;\
rm ../isdn4k-utils-$(I4LVERSION) )
dist: distarch