Removed extras/ and build-root/ code since they are not properly maintained
This commit is contained in:
parent
b39ee078c4
commit
ca697c9a36
8 changed files with 3 additions and 205 deletions
42
Makefile.in
42
Makefile.in
|
|
@ -155,50 +155,10 @@ mrproper: uninstall uninstall-example uninstall-util clean clean-example clean-u
|
|||
|
||||
distclean:
|
||||
rm -f Makefile TAGS config.status config.log *~ .depend
|
||||
rm -rf autom4te.cache build-root/rpmbuild
|
||||
rm -f build-root/*.tar.xz build-root/*.rpm extras/rpm/Makefile
|
||||
rm -rf autom4te.cache
|
||||
for i in $(SUBDIRS) doc example util docker; \
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) $@); done
|
||||
|
||||
export BR=$(CURDIR)/build-root
|
||||
|
||||
$(BR)/scripts/.version:
|
||||
ifneq ("$(wildcard /etc/redhat-release)","")
|
||||
$(shell $(BR)/scripts/version rpm-string > $(BR)/scripts/.version)
|
||||
else
|
||||
$(shell $(BR)/scripts/version > $(BR)/scripts/.version)
|
||||
endif
|
||||
|
||||
DIST_FILE = $(BR)/clixon-$(shell extras/scripts/version).tar
|
||||
DIST_SUBDIR = clixon-$(shell extras/scripts/version | cut -f1 -d-)
|
||||
|
||||
dist:
|
||||
@if git rev-parse 2> /dev/null ; then \
|
||||
git archive \
|
||||
--prefix=$(DIST_SUBDIR)/ \
|
||||
--format=tar \
|
||||
-o $(DIST_FILE) \
|
||||
HEAD ; \
|
||||
git describe > $(BR)/.version ; \
|
||||
else \
|
||||
(cd .. ; tar -cf $(DIST_FILE) $(DIST_SUBDIR) --exclude=*.tar) ; \
|
||||
extras/scripts/version > $(BR)/.version ; \
|
||||
fi
|
||||
@tar --append \
|
||||
--file $(DIST_FILE) \
|
||||
--transform='s,.*/.version,$(DIST_SUBDIR)/extras/scripts/.version,' \
|
||||
$(BR)/.version
|
||||
@$(RM) $(BR)/.version $(DIST_FILE).xz
|
||||
@xz -v --threads=0 $(DIST_FILE)
|
||||
@$(RM) $(BR)/clixon-latest.tar.xz
|
||||
@ln -rs $(DIST_FILE).xz $(BR)/clixon-latest.tar.xz
|
||||
|
||||
pkg-rpm: dist
|
||||
make -C extras/rpm
|
||||
|
||||
pkg-srpm: dist
|
||||
make -C extras/rpm srpm
|
||||
|
||||
# To make the example you need to run the "install-include" target first
|
||||
example: checkinstall util warnroot
|
||||
(cd $@ && $(MAKE) $(MFLAGS) all)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue