Fixes dist creation
This commit is contained in:
parent
c6bb475430
commit
04f0ce65f3
11
Makefile
11
Makefile
|
@ -1,6 +1,7 @@
|
||||||
PACKAGE = utils
|
PACKAGE = utils
|
||||||
VERSION = 0.0.0
|
VERSION = 0.0.0
|
||||||
SUBDIRS = src
|
SUBDIRS = src
|
||||||
|
RM = rm -f
|
||||||
LN = ln -sf
|
LN = ln -sf
|
||||||
TAR = tar -czvf
|
TAR = tar -czvf
|
||||||
|
|
||||||
|
@ -17,7 +18,7 @@ distclean:
|
||||||
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) distclean) || exit; done
|
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) distclean) || exit; done
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
$(RM) $(PACKAGE)-$(VERSION)
|
$(RM) -r $(PACKAGE)-$(VERSION)
|
||||||
$(LN) . $(PACKAGE)-$(VERSION)
|
$(LN) . $(PACKAGE)-$(VERSION)
|
||||||
@$(TAR) $(PACKAGE)-$(VERSION).tar.gz \
|
@$(TAR) $(PACKAGE)-$(VERSION).tar.gz \
|
||||||
$(PACKAGE)-$(VERSION)/src/basename.c \
|
$(PACKAGE)-$(VERSION)/src/basename.c \
|
||||||
|
@ -59,11 +60,11 @@ dist:
|
||||||
$(PACKAGE)-$(VERSION)/src/uniq.c \
|
$(PACKAGE)-$(VERSION)/src/uniq.c \
|
||||||
$(PACKAGE)-$(VERSION)/src/unlink.c \
|
$(PACKAGE)-$(VERSION)/src/unlink.c \
|
||||||
$(PACKAGE)-$(VERSION)/src/wc.c \
|
$(PACKAGE)-$(VERSION)/src/wc.c \
|
||||||
|
$(PACKAGE)-$(VERSION)/src/Makefile \
|
||||||
$(PACKAGE)-$(VERSION)/src/common.c \
|
$(PACKAGE)-$(VERSION)/src/common.c \
|
||||||
$(PACKAGE)-$(VERSION)/src/project.conf \
|
$(PACKAGE)-$(VERSION)/src/project.conf \
|
||||||
$(PACKAGE)-$(VERSION)/src/Makefile \
|
$(PACKAGE)-$(VERSION)/Makefile \
|
||||||
$(PACKAGE)-$(VERSION)/project.conf \
|
$(PACKAGE)-$(VERSION)/project.conf
|
||||||
$(PACKAGE)-$(VERSION)/Makefile
|
|
||||||
$(RM) $(PACKAGE)-$(VERSION)
|
$(RM) $(PACKAGE)-$(VERSION)
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
|
@ -71,3 +72,5 @@ install: all
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit; done
|
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit; done
|
||||||
|
|
||||||
|
.PHONY: all subdirs clean distclean dist install uninstall
|
||||||
|
|
Loading…
Reference in New Issue
Block a user