Removed extra release related makefiles.
This commit is contained in:
parent
52cc7d04cf
commit
6f1069c5f7
|
@ -1,28 +0,0 @@
|
||||||
ifeq ($(RELEASE),YES)
|
|
||||||
HOST_SYSTEM ?= $(shell uname -s | tr [:upper:] [:lower:] | sed s/darwin/macosx/ )
|
|
||||||
|
|
||||||
ifeq ($(HOST_SYSTEM), macosx)
|
|
||||||
HOST_MACHINE ?= $(shell uname -p | tr [:upper:] [:lower:] )
|
|
||||||
else
|
|
||||||
HOST_MACHINE ?= $(shell uname -m | tr [:upper:] [:lower:] | sed s/i686/i386/ | sed s/x86_64/amd64/ | sed s/ppc64/powerpc/ )
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(HOST_SYSTEM), mingw32_nt-5.1)
|
|
||||||
HOST_SYSTEM = win32
|
|
||||||
endif
|
|
||||||
|
|
||||||
VERSION ?= $(shell grep define\ VERSION version.h | cut -f 3 -d " " | tr -d [=\"=] )
|
|
||||||
SNAPSHOT ?= $(shell date '+%Y%m%d' )
|
|
||||||
REVISION ?= HEAD
|
|
||||||
PACKAGE ?= uhub-$(VERSION)
|
|
||||||
PACKAGE_SRC ?= $(PACKAGE)-src
|
|
||||||
PACKAGE_BIN ?= $(PACKAGE)-$(HOST_SYSTEM)-$(HOST_MACHINE)
|
|
||||||
|
|
||||||
URL_ARCHIVE='build-archive:~/uhub/'
|
|
||||||
URL_PUBLISH='domeneshop:~/www/downloads/uhub/'
|
|
||||||
URL_SNAPSHOT='domeneshop:~/www/downloads/uhub/snapshots/'
|
|
||||||
|
|
||||||
else
|
|
||||||
autotest_TMP = autotest.c
|
|
||||||
endif
|
|
||||||
|
|
|
@ -1,97 +0,0 @@
|
||||||
autotest.c: $(autotest_SOURCES)
|
|
||||||
$(shell exotic --standalone $(autotest_SOURCES) > $@)
|
|
||||||
|
|
||||||
ifeq ($(RELEASE),YES)
|
|
||||||
|
|
||||||
%.tar.bz2: %.tar
|
|
||||||
@bzip2 -c -9 $^ > $@
|
|
||||||
|
|
||||||
%.tar.gz: %.tar
|
|
||||||
@gzip -c -9 $^ > $@
|
|
||||||
|
|
||||||
ChangeLog-$(VERSION): ChangeLog
|
|
||||||
@cp $^ $@
|
|
||||||
|
|
||||||
changelog: ChangeLog-$(VERSION)
|
|
||||||
|
|
||||||
define gitexport
|
|
||||||
@if [ -d $(PACKAGE) ]; then rm -Rf $(PACKAGE); fi
|
|
||||||
@git archive --format=tar --prefix=$(PACKAGE)/ $(REVISION) | tar x
|
|
||||||
endef
|
|
||||||
|
|
||||||
define cleanexport
|
|
||||||
@if [ -d $(PACKAGE) ]; then rm -Rf $(PACKAGE); fi
|
|
||||||
endef
|
|
||||||
|
|
||||||
package:
|
|
||||||
$(gitexport)
|
|
||||||
@rm -f $(PACKAGE)/release_*.mk
|
|
||||||
@grep -v \\-include $(PACKAGE)/GNUmakefile > $(PACKAGE)/GNUmakefile2
|
|
||||||
@mv $(PACKAGE)/GNUmakefile2 $(PACKAGE)/GNUmakefile
|
|
||||||
@$(shell exotic --standalone $(autotest_SOURCES) > $(PACKAGE)/autotest.c )
|
|
||||||
|
|
||||||
package-bin:
|
|
||||||
$(gitexport)
|
|
||||||
@rm -Rf $(PACKAGE)/src
|
|
||||||
@rm -Rf $(PACKAGE)/autotest
|
|
||||||
@rm -f $(PACKAGE)/autotest.c
|
|
||||||
@rm -f $(PACKAGE)/*akefile
|
|
||||||
@rm -f $(PACKAGE)/release_*.mk
|
|
||||||
@rm -f $(PACKAGE)/version.h
|
|
||||||
@rm -f $(PACKAGE)/doc/architecture.txt
|
|
||||||
@rm -f $(PACKAGE)/doc/Doxyfile
|
|
||||||
@rm -f $(PACKAGE)/doc/uhub.dot
|
|
||||||
@rm -f $(PACKAGE)/doc/extensions.txt
|
|
||||||
|
|
||||||
package-bin-build: package-bin clean $(uhub_BINARY)
|
|
||||||
@cp $(uhub_BINARY) $(PACKAGE)
|
|
||||||
|
|
||||||
$(PACKAGE_SRC).tar: package
|
|
||||||
@tar cf $(PACKAGE_SRC).tar $(PACKAGE)
|
|
||||||
|
|
||||||
$(PACKAGE_SRC).zip: package
|
|
||||||
@zip -q -9 -r $(PACKAGE_SRC).zip $(PACKAGE)
|
|
||||||
|
|
||||||
$(PACKAGE_BIN).tar: package-bin-build
|
|
||||||
@tar cf $(PACKAGE_BIN).tar $(PACKAGE)
|
|
||||||
|
|
||||||
$(PACKAGE_BIN).zip: package-bin-build
|
|
||||||
@zip -q -9 -r $(PACKAGE_BIN).zip
|
|
||||||
|
|
||||||
$(PACKAGE_SRC).tar.gz: $(PACKAGE_SRC).tar
|
|
||||||
|
|
||||||
$(PACKAGE_SRC).tar.bz2: $(PACKAGE_SRC).tar
|
|
||||||
|
|
||||||
$(PACKAGE_BIN).tar.gz: $(PACKAGE_BIN).tar
|
|
||||||
|
|
||||||
$(PACKAGE_BIN).tar.bz2: $(PACKAGE_BIN).tar
|
|
||||||
|
|
||||||
snapshot: tarballs
|
|
||||||
@mv $(PACKAGE_SRC).tar.gz uhub-snapshot-$(SNAPSHOT).tar.gz
|
|
||||||
@rm $(PACKAGE_SRC).tar.bz2
|
|
||||||
|
|
||||||
publish-snapshot: snapshot
|
|
||||||
@scp -q uhub-snapshot-$(SNAPSHOT).tar.gz $(URL_SNAPSHOT)
|
|
||||||
|
|
||||||
publish: release
|
|
||||||
@scp -q $(PACKAGE_SRC).tar.gz $(PACKAGE_SRC).tar.bz2 $(PACKAGE_BIN).tar.gz $(PACKAGE_BIN).tar.bz2 ChangeLog-$(VERSION) $(URL_PUBLISH)
|
|
||||||
|
|
||||||
tarballs: $(PACKAGE_SRC).tar.gz $(PACKAGE_SRC).tar.bz2 $(PACKAGE_SRC).zip
|
|
||||||
@rm $(PACKAGE_SRC).tar
|
|
||||||
|
|
||||||
ifeq ($(WINDOWS), YES)
|
|
||||||
binaries: $(PACKAGE_BIN).tar.gz $(PACKAGE_BIN).tar.bz2 $(PACKAGE_BIN).zip
|
|
||||||
@rm $(PACKAGE_BIN).tar
|
|
||||||
|
|
||||||
else
|
|
||||||
binaries: $(PACKAGE_BIN).tar.gz $(PACKAGE_BIN).tar.bz2
|
|
||||||
@rm $(PACKAGE_BIN).tar
|
|
||||||
endif
|
|
||||||
|
|
||||||
release: binaries tarballs changelog
|
|
||||||
$(cleanexport)
|
|
||||||
else
|
|
||||||
|
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
Loading…
Reference in New Issue