-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (21 loc) · 819 Bytes
/
Makefile
File metadata and controls
21 lines (21 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Define the list of subdirectories containing the projects
SUBDIRS := appmotor bluez-qt core cursor-themes dock filemanager fishui icons kwin-plugins launcher libcutefish qt-plugins screenlocker sddm-theme gtk-theme settings statusbar terminal wallpapers
# Default target
all: $(SUBDIRS)
# Rule to configure, build and install each subdirectory
$(SUBDIRS):
@echo "Processing $@"
mkdir -p $@/build && cd $@/build && \
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++.. && \
$(MAKE) && \
sudo $(MAKE) install
.PHONY: all $(SUBDIRS)
install: $(SUBDIRS)
@echo "Installation completed for all components."
# Clean rule for cleaning up build artifacts in each subdirectory
clean:
@for dir in $(SUBDIRS); do \
echo "Cleaning $$dir"; \
rm -rf $$dir/build; \
done
.PHONY: clean