1
0

move dotfiles/packages/all to Makefile

This commit is contained in:
dtb
2022-05-27 17:58:49 -04:00
parent 3c9e71145e
commit 3a14292b0e
2 changed files with 52 additions and 76 deletions

View File

@@ -1,5 +1,6 @@
# System utilities
CC=cc
CFLAGS=-I include/ -I lib/ -Wall -Werror
CFLAGS=-I include/ -I lib/ -Wall
RM=rm -f
all: libraries programs
@@ -43,8 +44,10 @@ libstr: lib/libstr.c lib/libstr.h
stdbool: include/stdbool.h
sysexits: src/sysexits.c
sysexits_bin: src/sysexits.c
$(CC) $(CFLAGS) -o bin/sysexits src/sysexits.c
sysexits: sysexits_bin
bin/sysexits >include/sysexits.h
programs: echo false nonzero simexec sleep streq stris
@@ -96,4 +99,51 @@ which: libshell src/which.c
$(CC) $(CFLAGS) -c -o src/which.o src/which.c
$(CC) $(CFLAGS) -o bin/which lib/libshell.o src/which.o
# Convenience
PROGRAMS= \
alsa-plugins-nice alsa-utils \
anki audacious \
curl wget \
dvdbackup ffmpeg mpv \
vlc \
awk nawk sed moreutils \
ed vim \
feh ffmpeg imagemagick \
gcc \
git mercurial \
gparted \
gperf gwenview \
htop powertop \
inetutils iptables k3b \
kate kdenlive krita \
lame linux-headers lynx \
macchanger make \
man-pages man-pages-posix \
moc \
net-tools \
nmap p7zip pkgfile \
progress \
pulseaudio pulseaudio-alsa pulseaudio-utils \
pulsemixer \
python3 qbittorrent qemu \
rsync s-tui \
screen tmux twin \
scrot sed smartmontools \
thunar thunderbird \
ttf-liberation tlp \
units \
unrar unzip \
util-linux \
virt-manager \
wireguard-tools \
xclip \
xf86-input-libinput xf86-input-wacom xf86-video-intel \
xscreensaver xterm \
zathura zathura-cb zathura-djvu \
zathura-ps
alpine-setup:
apk add $(PROGRAMS)
.PHONY: all clean cleanlibraries cleanprograms noargvzero stdbool sysexits