Skip to content

Commit 63d7fe8

Browse files
hazamashokenFreekBes
authored andcommitted
fix: remove old version entirely when reinstalling
When reinstalling codam-webgreeter, greeter.css and other static files are not remove before re-building. changes: - rm dist build greeter.css for the build rule
1 parent 1aed7be commit 63d7fe8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ all: build
2626
npm-install:
2727
npm install
2828

29-
build: static/greeter.css npm-install copy-files
29+
build: clean static/greeter.css npm-install copy-files
3030
npm run build
3131
npm run bundle
3232

@@ -56,11 +56,13 @@ uninstall:
5656
[ -f /usr/share/codam/uninstall-codam-web-greeter-service.sh ] && bash /usr/share/codam/uninstall-codam-web-greeter-service.sh
5757
@echo "Update your /etc/lightdm/web-greeter.yml config file manually to disable the Codam theme if needed"
5858

59-
re:
59+
re: clean
60+
make build
61+
62+
clean:
6063
rm -f "$(ROOT_DIR)/static/greeter.css"
6164
rm -rf "$(ROOT_DIR)/build"
6265
rm -rf "$(ROOT_DIR)/dist"
63-
make build
6466

6567
# CLIENT THEMING
6668
static/greeter.css:
@@ -92,4 +94,4 @@ server-stop:
9294
cd $(ROOT_DIR)/server
9395
docker compose -f "$(ROOT_DIR)/server/docker-compose.yaml" down
9496

95-
.PHONY: all npm-install build copy-files install uninstall re use-light-theme use-boxed-theme server update_server_version server-stop
97+
.PHONY: all npm-install build copy-files install uninstall re use-light-theme use-boxed-theme server update_server_version server-stop clean

0 commit comments

Comments
 (0)