Obsolete
/
packaging
Archived
3
0
Fork 0

Renaming package => packaging.

master
Philippe PITTOLI 2019-09-12 17:30:39 +02:00
parent 42a0d5dc31
commit 67114e257b
5 changed files with 37 additions and 34 deletions

View File

@ -1,4 +1,4 @@
PACKAGE = 'package' PACKAGE = 'packaging'
VERSION = '0.8.0' VERSION = '0.8.0'
PREFIX := /usr/local PREFIX := /usr/local
@ -19,39 +19,39 @@ LDFLAGS :=
Q := @ Q := @
all: package assemble-apk.sh src/config.cr all: packaging assemble-apk.sh src/config.cr
@: @:
package: src/main.cr src/config.cr src/context.cr src/exception.cr src/instructions.cr src/main.cr src/package.cr src/recipe.cr src/sources.cr src/config.cr packaging: src/main.cr src/backends.cr src/context.cr src/exception.cr src/instructions.cr src/main.cr src/package.cr src/recipe.cr src/sources.cr src/config.cr
@echo ' CR > package' @echo ' CR > packaging'
$(Q)crystal src/main.cr -o 'package' $(Q)crystal src/main.cr -o 'packaging'
package.install: package packaging.install: packaging
@echo ' IN > $(BINDIR)/package' @echo ' IN > $(BINDIR)/packaging'
$(Q)mkdir -p '$(DESTDIR)$(BINDIR)' $(Q)mkdir -p '$(DESTDIR)$(BINDIR)'
$(Q)install -m0755 package $(DESTDIR)$(BINDIR)/package $(Q)install -m0755 packaging $(DESTDIR)$(BINDIR)/packaging
package.clean: packaging.clean:
@echo ' RM > package' @echo ' RM > packaging'
$(Q)rm -f package $(Q)rm -f packaging
package.uninstall: packaging.uninstall:
@echo ' RM > $(BINDIR)/package' @echo ' RM > $(BINDIR)/packaging'
$(Q)rm -f '$(DESTDIR)$(BINDIR)/package' $(Q)rm -f '$(DESTDIR)$(BINDIR)/packaging'
assemble-apk.sh: assemble-apk.sh:
assemble-apk.sh.install: assemble-apk.sh assemble-apk.sh.install: assemble-apk.sh
@echo ' IN > $(LIBEXECDIR)/package/assemble-apk.sh' @echo ' IN > $(LIBEXECDIR)/packaging/assemble-apk.sh'
$(Q)mkdir -p '$(DESTDIR)$(LIBEXECDIR)/package' $(Q)mkdir -p '$(DESTDIR)$(LIBEXECDIR)/packaging'
$(Q)install -m0755 assemble-apk.sh $(DESTDIR)$(LIBEXECDIR)/package/assemble-apk.sh $(Q)install -m0755 assemble-apk.sh $(DESTDIR)$(LIBEXECDIR)/packaging/assemble-apk.sh
assemble-apk.sh.clean: assemble-apk.sh.clean:
assemble-apk.sh.uninstall: assemble-apk.sh.uninstall:
@echo ' RM > $(LIBEXECDIR)/package/assemble-apk.sh' @echo ' RM > $(LIBEXECDIR)/packaging/assemble-apk.sh'
$(Q)rm -f '$(DESTDIR)$(LIBEXECDIR)/package/assemble-apk.sh' $(Q)rm -f '$(DESTDIR)$(LIBEXECDIR)/packaging/assemble-apk.sh'
src/config.cr: src/config.cr.in src src/config.cr: src/config.cr.in src
@echo ' SED > src/config.cr' @echo ' SED > src/config.cr'
@ -90,12 +90,12 @@ $(DESTDIR)$(INCLUDEDIR):
$(DESTDIR)$(MANDIR): $(DESTDIR)$(MANDIR):
@echo ' DIR > $(MANDIR)' @echo ' DIR > $(MANDIR)'
$(Q)mkdir -p $(DESTDIR)$(MANDIR) $(Q)mkdir -p $(DESTDIR)$(MANDIR)
install: subdirs.install package.install assemble-apk.sh.install src/config.cr.install install: subdirs.install packaging.install assemble-apk.sh.install src/config.cr.install
@: @:
subdirs.install: subdirs.install:
uninstall: subdirs.uninstall package.uninstall assemble-apk.sh.uninstall src/config.cr.uninstall uninstall: subdirs.uninstall packaging.uninstall assemble-apk.sh.uninstall src/config.cr.uninstall
@: @:
subdirs.uninstall: subdirs.uninstall:
@ -105,7 +105,7 @@ test: all subdirs subdirs.test
subdirs.test: subdirs.test:
clean: package.clean assemble-apk.sh.clean src/config.cr.clean clean: packaging.clean assemble-apk.sh.clean src/config.cr.clean
distclean: clean distclean: clean
@ -121,6 +121,7 @@ $(PACKAGE)-$(VERSION).tar.gz: distdir
@echo ' TAR > $(PACKAGE)-$(VERSION).tar.gz' @echo ' TAR > $(PACKAGE)-$(VERSION).tar.gz'
$(Q)tar czf $(PACKAGE)-$(VERSION).tar.gz \ $(Q)tar czf $(PACKAGE)-$(VERSION).tar.gz \
$(PACKAGE)-$(VERSION)/src/config.cr.in \ $(PACKAGE)-$(VERSION)/src/config.cr.in \
$(PACKAGE)-$(VERSION)/src/backends.cr \
$(PACKAGE)-$(VERSION)/src/context.cr \ $(PACKAGE)-$(VERSION)/src/context.cr \
$(PACKAGE)-$(VERSION)/src/exception.cr \ $(PACKAGE)-$(VERSION)/src/exception.cr \
$(PACKAGE)-$(VERSION)/src/instructions.cr \ $(PACKAGE)-$(VERSION)/src/instructions.cr \
@ -135,6 +136,7 @@ $(PACKAGE)-$(VERSION).tar.xz: distdir
@echo ' TAR > $(PACKAGE)-$(VERSION).tar.xz' @echo ' TAR > $(PACKAGE)-$(VERSION).tar.xz'
$(Q)tar cJf $(PACKAGE)-$(VERSION).tar.xz \ $(Q)tar cJf $(PACKAGE)-$(VERSION).tar.xz \
$(PACKAGE)-$(VERSION)/src/config.cr.in \ $(PACKAGE)-$(VERSION)/src/config.cr.in \
$(PACKAGE)-$(VERSION)/src/backends.cr \
$(PACKAGE)-$(VERSION)/src/context.cr \ $(PACKAGE)-$(VERSION)/src/context.cr \
$(PACKAGE)-$(VERSION)/src/exception.cr \ $(PACKAGE)-$(VERSION)/src/exception.cr \
$(PACKAGE)-$(VERSION)/src/instructions.cr \ $(PACKAGE)-$(VERSION)/src/instructions.cr \
@ -149,6 +151,7 @@ $(PACKAGE)-$(VERSION).tar.bz2: distdir
@echo ' TAR > $(PACKAGE)-$(VERSION).tar.bz2' @echo ' TAR > $(PACKAGE)-$(VERSION).tar.bz2'
$(Q)tar cjf $(PACKAGE)-$(VERSION).tar.bz2 \ $(Q)tar cjf $(PACKAGE)-$(VERSION).tar.bz2 \
$(PACKAGE)-$(VERSION)/src/config.cr.in \ $(PACKAGE)-$(VERSION)/src/config.cr.in \
$(PACKAGE)-$(VERSION)/src/backends.cr \
$(PACKAGE)-$(VERSION)/src/context.cr \ $(PACKAGE)-$(VERSION)/src/context.cr \
$(PACKAGE)-$(VERSION)/src/exception.cr \ $(PACKAGE)-$(VERSION)/src/exception.cr \
$(PACKAGE)-$(VERSION)/src/instructions.cr \ $(PACKAGE)-$(VERSION)/src/instructions.cr \
@ -159,7 +162,7 @@ $(PACKAGE)-$(VERSION).tar.bz2: distdir
$(PACKAGE)-$(VERSION)/src/config.cr $(PACKAGE)-$(VERSION)/src/config.cr
help: help:
@echo ' :: package-0.8.0' @echo ' :: packaging-0.8.0'
@echo '' @echo ''
@echo 'Generic targets:' @echo 'Generic targets:'
@echo ' - help  Prints this help message.' @echo ' - help  Prints this help message.'
@ -185,7 +188,7 @@ help:
@echo ' - VERSION  ${VERSION}' @echo ' - VERSION  ${VERSION}'
@echo '' @echo ''
@echo 'Project targets: ' @echo 'Project targets: '
@echo ' - package  crystal' @echo ' - packaging  crystal'
@echo ' - assemble-apk.sh script' @echo ' - assemble-apk.sh script'
@echo '' @echo ''
@echo 'Makefile options:' @echo 'Makefile options:'

View File

@ -1,5 +1,5 @@
package=package package=packaging
version=0.8.0 version=0.8.0
variables+=( variables+=(
@ -8,11 +8,11 @@ variables+=(
VERSION "$version" VERSION "$version"
) )
targets=(package assemble-apk.sh) targets=(packaging assemble-apk.sh)
type[package]=crystal type[packaging]=crystal
sources[package]=src/main.cr sources[packaging]=src/main.cr
depends[package]="$(echo src/*.cr | sed 's| src/config.cr||') src/config.cr" depends[packaging]="$(echo src/*.cr | sed 's| src/config.cr||') src/config.cr"
type[assemble-apk.sh]=script type[assemble-apk.sh]=script
@ -33,5 +33,5 @@ function script.install {
fi fi
} }
install[assemble-apk.sh]='$(LIBEXECDIR)/package' install[assemble-apk.sh]='$(LIBEXECDIR)/packaging'

View File

@ -1,5 +1,5 @@
name: package name: packaging
version: 0.1.1 version: 0.1.2
# authors: # authors:
# - name <email@example.com> # - name <email@example.com>

View File

@ -1,6 +1,6 @@
# These values are changed by `make` at build-time. # These values are changed by `make` at build-time.
OWN_LIBEXEC_DIR = "@LIBEXECDIR@/package" OWN_LIBEXEC_DIR = "@LIBEXECDIR@/packaging"
SYSCONF_DIR = "@SYSCONFDIR@" SYSCONF_DIR = "@SYSCONFDIR@"
module Package module Package

View File

@ -10,7 +10,7 @@ extend Package
context = Context.new() context = Context.new()
context.repositories << "." context.repositories << "."
configuration_file = "#{SYSCONF_DIR}/package.cfg" configuration_file = "#{SYSCONF_DIR}/packaging.cfg"
configuration_file_requested = false configuration_file_requested = false
requested_recipes = [] of String requested_recipes = [] of String