makefile misc + generator
This commit is contained in:
parent
aab50b0401
commit
0aac460d63
100
Makefile
100
Makefile
@ -1,30 +1,6 @@
|
|||||||
# Autogenerated at 30.11.2022 17:50 using ./gen-makefile
|
# Autogenerated at 11.12.2022 14:30 using ./gen-makefile
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
#===============================================
|
|
||||||
# Scripts listed in ./packs
|
|
||||||
#===============================================
|
|
||||||
|
|
||||||
# [PACK] php + composer
|
|
||||||
composer: php composer-clean
|
|
||||||
|
|
||||||
# [TODO] [PACK] qt5 + flameshot from source
|
|
||||||
flameshot: qt5 flameshot-build
|
|
||||||
|
|
||||||
# [PACK] Apache + php + mariadb
|
|
||||||
lamp: apache php mariadb
|
|
||||||
|
|
||||||
# [PACK] OBS Studio + droidcam-obs
|
|
||||||
obs: obs-studio droidcam-obs
|
|
||||||
|
|
||||||
# [PACK] zsh + omz + powerline10k + MesloLGS font
|
|
||||||
omz: zsh omz-clean omz-fancy
|
|
||||||
chsh -s /usr/bin/zsh
|
|
||||||
@exec zsh
|
|
||||||
|
|
||||||
# [PACK] php + composer + phpunit + psalm + phpcs + php-cs-fixer
|
|
||||||
phptools: php composer-clean php-tools-only
|
|
||||||
|
|
||||||
#===============================================
|
#===============================================
|
||||||
# Scripts listed in ./install
|
# Scripts listed in ./install
|
||||||
#===============================================
|
#===============================================
|
||||||
@ -46,8 +22,8 @@ chrome:
|
|||||||
@./install/chrome
|
@./install/chrome
|
||||||
|
|
||||||
# Install composer (latest)
|
# Install composer (latest)
|
||||||
composer-clean:
|
composer:
|
||||||
@./install/composer-clean
|
@./install/composer
|
||||||
|
|
||||||
# Install docker (latest) + docker-compose (latest) + ppa
|
# Install docker (latest) + docker-compose (latest) + ppa
|
||||||
docker:
|
docker:
|
||||||
@ -145,9 +121,29 @@ pgsql:
|
|||||||
php:
|
php:
|
||||||
@./install/php
|
@./install/php
|
||||||
|
|
||||||
# Install phpunit + psalm + phpcs + php-cs-fixer
|
# Install phpcs + php-cs-fixer
|
||||||
php-tools-only:
|
phpcs:
|
||||||
@./install/php-tools-only
|
@./install/phpcs
|
||||||
|
|
||||||
|
# Install phpmd
|
||||||
|
phpmd:
|
||||||
|
@./install/phpmd
|
||||||
|
|
||||||
|
# Install psalm
|
||||||
|
php-psalm:
|
||||||
|
@./install/php-psalm
|
||||||
|
|
||||||
|
# Install php-spx
|
||||||
|
php-spx:
|
||||||
|
@./install/php-spx
|
||||||
|
|
||||||
|
# Install phpstan
|
||||||
|
phpstan:
|
||||||
|
@./install/phpstan
|
||||||
|
|
||||||
|
# Install phpunit
|
||||||
|
phpunit:
|
||||||
|
@./install/phpunit
|
||||||
|
|
||||||
# Install postman (latest)
|
# Install postman (latest)
|
||||||
postman:
|
postman:
|
||||||
@ -201,6 +197,50 @@ zint:
|
|||||||
zsh:
|
zsh:
|
||||||
@./install/zsh
|
@./install/zsh
|
||||||
|
|
||||||
|
|
||||||
|
#===============================================
|
||||||
|
# Scripts listed in ./packs
|
||||||
|
#===============================================
|
||||||
|
|
||||||
|
# [TODO] [PACK] Install qt5 + flameshot from source
|
||||||
|
flameshot:
|
||||||
|
qt5
|
||||||
|
flameshot-build
|
||||||
|
|
||||||
|
# [PACK] Install apache + php + mariadb
|
||||||
|
lamp:
|
||||||
|
apache
|
||||||
|
php-stack
|
||||||
|
mariadb
|
||||||
|
|
||||||
|
# [PACK] Install OBS Studio + droidcam-obs
|
||||||
|
obs:
|
||||||
|
obs-studio
|
||||||
|
droidcam-obs
|
||||||
|
|
||||||
|
# [PACK] Install zsh + omz + powerline10k + MesloLGS font
|
||||||
|
omz:
|
||||||
|
zsh
|
||||||
|
omz-clean
|
||||||
|
omz-fancy
|
||||||
|
chsh -s /usr/bin/zsh
|
||||||
|
@exec zsh
|
||||||
|
|
||||||
|
# [PACK] Install full php stack with tooling
|
||||||
|
phptools:
|
||||||
|
php
|
||||||
|
php-tools
|
||||||
|
|
||||||
|
# [PACK] Install only php tooling (composer, phpunit, psalm, phpcs, php-cs-fixer, php-spx, phpmd)
|
||||||
|
php-stack:
|
||||||
|
composer
|
||||||
|
php-psalm
|
||||||
|
php-spx
|
||||||
|
phpcs
|
||||||
|
phpmd
|
||||||
|
phpstan
|
||||||
|
phpunit
|
||||||
|
|
||||||
#===============================================
|
#===============================================
|
||||||
# Scripts listed in ./upgrade
|
# Scripts listed in ./upgrade
|
||||||
#===============================================
|
#===============================================
|
||||||
|
30
gen-makefile
30
gen-makefile
@ -1,24 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
mv Makefile Makefile.bak
|
[ -f Makefile ] && mv Makefile Makefile.bak
|
||||||
CHR_UPGRADE='^'
|
CHR_UPGRADE='^'
|
||||||
CHR_UNINSTALL='/'
|
CHR_UNINSTALL='/'
|
||||||
|
|
||||||
cat << EOF >> Makefile
|
cat << EOF > Makefile
|
||||||
# Autogenerated at $(date +'%d.%m.%Y %H:%M') using ${BASH_SOURCE[0]}
|
# Autogenerated at $(date +'%d.%m.%Y %H:%M') using ${BASH_SOURCE[0]}
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
#===============================================
|
|
||||||
# Scripts listed in ./packs
|
|
||||||
#===============================================
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
for file in ./packs/*; do
|
|
||||||
cat "$file" >> Makefile
|
|
||||||
echo >> Makefile
|
|
||||||
done;
|
|
||||||
|
|
||||||
cat << EOF >> Makefile
|
|
||||||
#===============================================
|
#===============================================
|
||||||
# Scripts listed in ./install
|
# Scripts listed in ./install
|
||||||
#===============================================
|
#===============================================
|
||||||
@ -33,6 +21,20 @@ for file in ./install/*; do
|
|||||||
echo -e "# ${desc}\n${name}:\n\t@${file}\n" >> Makefile
|
echo -e "# ${desc}\n${name}:\n\t@${file}\n" >> Makefile
|
||||||
done;
|
done;
|
||||||
|
|
||||||
|
cat << EOF >> Makefile
|
||||||
|
|
||||||
|
#===============================================
|
||||||
|
# Scripts listed in ./packs
|
||||||
|
#===============================================
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
for file in ./packs/*; do
|
||||||
|
cat "$file" >> Makefile
|
||||||
|
echo >> Makefile
|
||||||
|
done;
|
||||||
|
|
||||||
|
|
||||||
cat << EOF >> Makefile
|
cat << EOF >> Makefile
|
||||||
#===============================================
|
#===============================================
|
||||||
# Scripts listed in ./upgrade
|
# Scripts listed in ./upgrade
|
||||||
|
Loading…
Reference in New Issue
Block a user