File size: 587 Bytes
da003ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This makefile is based on Pop OS wallpaper repo
# Yes I yoinked it and adapted it for this repo,
# Shut the fuck up

# PREFIX is environment variable, but if it is not set, then set default value
ifeq ($(PREFIX),)
    PREFIX := /usr/local
endif

datarootdir = $(PREFIX)/share
CURRENT = $(shell pwd)

.PHONY: install uninstall

install: all
	for file in $(CURRENT) ; do \	
		install -D -m 0644 "$$file" "$(DESTDIR)$(datadir)/wallpapers/$$(basename "$$file")"; \ \
	done

uninstall:
	for file in $(CURRENT) ; do \
		rm -f "$(DESTDIR)$(datadir)/wallpapers/$$(basename "$$file")"; \
	done