| File: gar.lib.mk | |
|---|---|
| base-0 | patch-1 |
| Line 203 | Line 203 |
| extract-%.deb: deb-bin-extract-%.deb @$(MAKECOOKIE) | extract-%.deb: deb-bin-extract-%.deb @$(MAKECOOKIE) |
| # For extracting configure script caches extract-$(GARHOST).cache: @echo -e " $(WORKCOLOR)== Copying $(BOLD)$(DOWNLOADDIR)/$(GARHOST).cache$(NORMALCOLOR)" @cp $(DOWNLOADDIR)/$(GARHOST).cache $(WORKSRC)/config.cache @$(MAKECOOKIE) | |
| # anything we don't know about, we just assume is already # uncompressed and unarchived in plain format | # anything we don't know about, we just assume is already # uncompressed and unarchived in plain format |
| Line 286 | Line 291 |
| # arguments configure-%/Imakefile: @echo -e " $(WORKCOLOR)==> Running imake in $(BOLD)$*$(NORMALCOLOR)" | # arguments configure-%/Imakefile: @echo -e " $(WORKCOLOR)==> Running imake in $(BOLD)$*$(NORMALCOLOR)" |
| @cd $* && $(CONFIGURE_ENV) imake -DUseInstalled -DBOOTSTRAPCFLAGS="$(CFLAGS)" -I$(DESTDIR)$(includedir)/X11/config $(CONFIGURE_ARGS) | @cd $* && $(CONFIGURE_ENV) imake -DUseInstalled -DBOOTSTRAPCFLAGS="$(CFLAGS)" -I$(DESTDIR)$(libdir)/X11/config $(CONFIGURE_ARGS) |
| @$(MAKECOOKIE) # configure a package that uses a "config" or "oldconfig" make | @$(MAKECOOKIE) # configure a package that uses a "config" or "oldconfig" make |
| Line 336 | Line 341 |
| INSTALL_TARGET ?= install | INSTALL_TARGET ?= install |
| install-%: prefix := $(if $(filter $(USE_STOW),yes),$(STOW_PREFIX)/$(GARNAME)-$(GARVERSION),$(prefix)) | |
| # just run make install and hope for the best. install-%/Makefile: @echo -e " $(WORKCOLOR)==> Running make install in $(BOLD)$*$(NORMALCOLOR)" | # just run make install and hope for the best. install-%/Makefile: @echo -e " $(WORKCOLOR)==> Running make install in $(BOLD)$*$(NORMALCOLOR)" |
| @$(INSTALL_ENV) $(firstword $(MAKE)) DESTDIR=$(DESTDIR) $(foreach TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* $(INSTALL_ARGS) $(INSTALL_TARGET) | @$(firstword $(MAKE)) $(INSTALL_ENV) DESTDIR=$(DESTDIR) $(foreach TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* $(INSTALL_ARGS) $(INSTALL_TARGET) |
| @$(MAKECOOKIE) install-%/makefile: @echo -e " $(WORKCOLOR)==> Running make install in $(BOLD)$*$(NORMALCOLOR)" | @$(MAKECOOKIE) install-%/makefile: @echo -e " $(WORKCOLOR)==> Running make install in $(BOLD)$*$(NORMALCOLOR)" |
| @$(INSTALL_ENV) $(firstword $(MAKE)) DESTDIR=$(DESTDIR) $(foreach TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* $(INSTALL_ARGS) $(INSTALL_TARGET) | @$(firstword $(MAKE)) $(INSTALL_ENV) DESTDIR=$(DESTDIR) $(foreach TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* $(INSTALL_ARGS) $(INSTALL_TARGET) |
| @$(MAKECOOKIE) install-%/GNUmakefile: @echo -e " $(WORKCOLOR)==> Running make install in $(BOLD)$*$(NORMALCOLOR)" | @$(MAKECOOKIE) install-%/GNUmakefile: @echo -e " $(WORKCOLOR)==> Running make install in $(BOLD)$*$(NORMALCOLOR)" |
| @$(INSTALL_ENV) $(firstword $(MAKE)) DESTDIR=$(DESTDIR) $(foreach TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* $(INSTALL_ARGS) $(INSTALL_TARGET) | @$(firstword $(MAKE)) $(INSTALL_ENV) DESTDIR=$(DESTDIR) $(foreach TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* $(INSTALL_ARGS) $(INSTALL_TARGET) |
| @$(MAKECOOKIE) # LICENSE INSTALLATION | @$(MAKECOOKIE) # LICENSE INSTALLATION |
| Line 385 | Line 392 |
| @cp -f $(DESTDIR)$(bindir)/$*-config $(STAGINGDIR)/$(GARNAME)/ @$(MAKECOOKIE) | @cp -f $(DESTDIR)$(bindir)/$*-config $(STAGINGDIR)/$(GARNAME)/ @$(MAKECOOKIE) |
| #################### STOW RULES #################### stow-%: @mkdir -p $(DESTDIR)$(prefix)/stow/$* @echo -e " $(WORKCOLOR)==> Relinking $(BOLD)$* $(WORKCOLOR) to become the default version$(NORMALCOLOR)" -@mv $(DESTDIR)$(STOW_PREFIX)$(GARNAME) $(DESTDIR)$(STOW_PREFIX)$(GARNAME)-old @ln -sf $(DESTDIR)$(STOW_PREFIX)$* $(DESTDIR)$(STOW_PREFIX)$(GARNAME) @echo -e " $(WORKCOLOR)==> Stowing $(BOLD)$(GARNAME) $(GARVERSION)$(NORMALCOLOR)" @stow -v -d $(DESTDIR)$(STOW_PREFIX) -t $(DESTDIR)$(prefix) -R $(GARNAME) @$(MAKECOOKIE) unstow-%: @echo -e " $(WORKCOLOR)==> Unstowing $(BOLD)$*$(NORMALCOLOR)" @stow -v -d $(DESTDIR)$(STOW_PREFIX) -t $(DESTDIR)$(prefix) -D $(GARNAME) @rm -f $(DESTDIR)$(STOW_PREFIX)/$(GARNAME) @rm -f $(COOKIEDIR)/stow-$* | |
| ###################################### # Use a manifest file of the format: # src:dest[:mode[:owner[:group]]] | ###################################### # Use a manifest file of the format: # src:dest[:mode[:owner[:group]]] |