From 1302de3e9a63ad810de3c68225003057c60e81e9 Mon Sep 17 00:00:00 2001 From: asus Date: Tue, 23 Jan 2024 09:59:08 +0100 Subject: [PATCH] - some comments in makefile - multiple infos in computer tuto --- config_files/skeleton_makefile | 13 ++++++++++--- tutos/computer.txt | 33 ++++++++++++++++++++++----------- 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/config_files/skeleton_makefile b/config_files/skeleton_makefile index 0849683..205ce85 100644 --- a/config_files/skeleton_makefile +++ b/config_files/skeleton_makefile @@ -46,16 +46,16 @@ VPATH = $(D_SRCS) LIBS = F_INCLUDES = $(HEADERS:%=$(D_HEADERS)/%) \ - $(TEMPLATES:%=$(D_TEMPLATES)/%) + $(TEMPLATES:%=$(D_TEMPLATES)/%) INCLUDES = -I$(D_HEADERS) \ - -I$(D_TEMPLATES) + -I$(D_TEMPLATES) D_SRCS = ./srcs SRCS = main.c D_HEADERS = ./headers HEADERS = colors.h \ - tests.hpp + tests.hpp D_TEMPLATES = ./templates TEMPLATES = template.tpp @@ -78,6 +78,13 @@ endif all: $(NAME) +# %.$(EXT) | $(D_OBJS) -> pipe is for order-only prerequisites : +# - for each file "%.$(EXT)" : +# - if it has been modified since last time +# - execute rules on corresponding target file "$(D_OBJS)/%.o" +# - and directory "$(D_OBJS)" is order-only prerequisite : +# - it must exist before executing rule +# - but last time modification is not checked $(D_OBJS)/%.o: %.$(EXT) | $(D_OBJS) @echo $(CYAN)"compilation (objects.o) :"$(RESET) $(CC) $(CFLAGS) -c $< -o $@ diff --git a/tutos/computer.txt b/tutos/computer.txt index 2cb93ec..d396cb3 100644 --- a/tutos/computer.txt +++ b/tutos/computer.txt @@ -114,17 +114,28 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |# ADD FORMULA TO FIND 12 **appimage :** - **chmod +x .appimage** make it executable - (optional) **mv path/Nextcloud-xx.Appimage ~/.local/bin/nextcloud** - **sudo vim /usr/share/applications/.desktop** create a file.desktop with content : - [Desktop Entry] - Exec=/absolute/path/to/file/<.ext> - Name= - Type=Application + - **chmod +x .appimage** make it executable + - create name for execution command : + - create an symlink in a bin location : + - /usr/bin if application is installed by systeme app manager (not the case for appimages) + - /usr/sbin if need sudo to execute + - /usr/local/bin or /usr/local/sbin if installed manually by user + - ~/.local/bin is accessible only for this user (PREFFERED LOCATION) + - make sure "~/.local/bin" is in $PATH + - **ln -s /absolut/path/to/program.appImage ~/.local/bin/** + .desktop file : + - in : /usr/share/applications/.desktop + - or in : ~/.local/share/applications/.desktop + - **locate "**desktop"** : to locate if the .desktop file already exist + - min content : + [Desktop Entry] + Exec= (if symlink created, otherwise path to the appimage file) + Name= + Type=Application **( cd /usr/share/applications && chmod 644 .desktop )** maybe change permissions **applications :** - **ln -s /path/to/executable /usr/bin** + **ln -s /path/to/executable ~/.local/bin/** add /usr/share/applications/.desktop as explained above for appimages **maybe, example with firefox :** Download Firefox @@ -187,7 +198,7 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |# **to enable vi :** `export TERM=xterm` **locked files on nextcloud :** https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883 **vi nextcloud.hugulumu.fr/nextcloud/config/config.php** : change maintenance mode to true - **mysql -u hugugtzx -p** + **mysql -u hugugtzx_next645 -p** : the db username and password are in the config.php file of previous step **(SHOW DATABASES;)** **USE hugugtzx_next645;** **(SHOW TABLES;)** @@ -249,7 +260,7 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |# **list of automatic settings :** - - install screen, omyzsh, keepassxc, curl, make, firefox, signal, gnome-tweaks, ffmpeg, yt-dlp + - install screen, omyzsh, keepassxc, curl, make, firefox, signal, gnome-tweaks, ffmpeg, yt-dlp, element - install or configure to avoid screen blue light - install nextcloud client (apt ? or appimage ? appimage need fuse : https://github.com/AppImage/AppImageKit/wiki/FUSE), and launch at startup - install these settings (connection with bitbucket ? ssh ? https ?) @@ -333,7 +344,7 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |# - create git project (having a local git project and beeing abble to push to a remote repo) : - on remote : - **mkdir my_project.git** ".git" is a convention for git "bare" repository - - **cd my_project.gut** + - **cd my_project.git** - **git init --bare** : create a bare repository (it's a repo without any content, just the commits) - **cd hooks** : navigate to the hook folder - **touch post-receive** : create a post-receive file