-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (18 loc) · 743 Bytes
/
Makefile
File metadata and controls
21 lines (18 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Makefile for nextcloud-app-template development
# Create a relative symlink in the parent directory so Nextcloud can find the
# app by its ID (app-template) even though the repo is cloned as nextcloud-app-template.
# Nextcloud requires the directory name to match the <id> in appinfo/info.xml.
dev-link:
@if [ -L ../app-template ]; then \
echo "Symlink ../app-template already exists."; \
else \
ln -s nextcloud-app-template ../app-template && \
echo "Created symlink: apps-extra/app-template -> nextcloud-app-template"; \
fi
dev-unlink:
@if [ -L ../app-template ]; then \
rm ../app-template && echo "Removed symlink ../app-template"; \
else \
echo "No symlink found at ../app-template."; \
fi
.PHONY: dev-link dev-unlink