All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists matching topic makefile

Recently created
Least recently created
Recently updated
Least recently updated

KarelWintersky / makefile - different install paths

0 likes
0 forks
1 files
Last active 1749140245
Разные варианты секции install для makefile
debian makefile

Ключевые различия

#!/usr/bin/make
SHELL = bash
INSTALL_DIR = example
PATH_PROJECT = $(DESTDIR)/var/www/$(INSTALL_DIR)

install: 	##@system Install package. Don't run it manually!!!
	@echo Installing...

KarelWintersky / makefile, section "install", add package version

0 likes
0 forks
1 files
Last active 1749140260
Сохраняет версию/дату/коммит хэш в файл _version и обновляет index.html
debian makefile
1 install: ##@system Install package. Don't run it manually!!!
2 @echo Installing...
3 # опущено
4
5 @# Get version info
6 $(eval COMMIT_HASH := $(shell git rev-parse --short HEAD))
7 $(eval VERSION := $(shell git log --oneline --format=%B -n 1 HEAD | head -n 1))
8 $(eval DATE := $(shell git log --oneline --format="%at" -n 1 HEAD | xargs -I{} date -d @{} +%Y-%m-%d))
9 @# Append version comment to index.html
10 @echo "" >> $(PATH_PROJECT)/index.html
Newer Older

Powered by Opengist ⋅ Load: 23ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文