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:
parent
000ebb064f
commit
b5f6de4dfb
20
Makefile
20
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue