-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 655 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PREFIX ?= /usr
BUILD_DIR := ./build
SOURCE_DIR := ./src
SUBDIRS := $(filter %/, $(wildcard $(SOURCE_DIR)/*/))
ZIPS := $(addsuffix .zip,$(shell basename -a $(SUBDIRS) 2>/dev/null))
build: clean convert
$(MAKE) dist
clean:
rm -rf $(BUILD_DIR)
rm -f $(ZIPS)
convert:
sh $(SOURCE_DIR)/_convert-to-png.sh
dist: $(ZIPS)
$(ZIPS): %.zip : | $(BUILD_DIR)/%
zip -j $@ AUTHORS LICENSE $(BUILD_DIR)/$*/*
install:
mkdir -p $(DESTDIR)$(PREFIX)/share/amule/skins
cp -f $(ZIPS) $(DESTDIR)$(PREFIX)/share/amule/skins
uninstall:
rm -f $(foreach zip, $(ZIPS), $(DESTDIR)$(PREFIX)/share/amule/skins/$(zip))
.PHONY: build clean convert dist install uninstall